Skip to content

Commit cffec0e

Browse files
authored
Migrate tests to Jest (#212)
1 parent d70395f commit cffec0e

12 files changed

+3345
-1488
lines changed

.eslintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
"env": {
99
"es6": true,
10-
"node": true
10+
"node": true,
11+
"jest": true
1112
},
1213

1314
"rules": {

.flowconfig

+2
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@
1010
[libs]
1111

1212
[options]
13+
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectError
14+
include_warnings=true

babel.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = api => ({
2+
presets: api.env("test")
3+
? ["@babel/preset-flow"]
4+
: [["@babel/preset-env", { loose: true }], "@babel/preset-flow"]
5+
});

0 commit comments

Comments
 (0)