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 committed 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
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
Expand Up @@ -10,3 +10,5 @@
[libs]

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

0 comments on commit cffec0e

Please sign in to comment.