Skip to content

Commit

Permalink
Migrate tests to Jest (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
leebyron authored Nov 13, 2019
1 parent d70395f commit cffec0e
Show file tree
Hide file tree
Showing 12 changed files with 3,345 additions and 1,488 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

"env": {
"es6": true,
"node": true
"node": true,
"jest": true
},

"rules": {
Expand Down
2 changes: 2 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@
[libs]

[options]
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectError
include_warnings=true
5 changes: 5 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = api => ({
presets: api.env("test")
? ["@babel/preset-flow"]
: [["@babel/preset-env", { loose: true }], "@babel/preset-flow"]
});
Loading

0 comments on commit cffec0e

Please sign in to comment.