Skip to content

Commit

Permalink
Move jest config to file and update deprecated option (#1377)
Browse files Browse the repository at this point in the history
  • Loading branch information
belcherj authored Jun 13, 2019
1 parent 43ab090 commit 6b0fd14
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
10 changes: 10 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
setupFilesAfterEnv: ['./setup-tests.js'],
globals: {
config: {
appVersion: 'foo',
},
},
roots: ['desktop', 'lib'],
testRegex: '(/test/.*\\.jsx?)|(test\\.jsx?)$',
};
13 changes: 0 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,6 @@
"> 1%",
"ie >= 11"
],
"jest": {
"globals": {
"config": {
"appVersion": "foo"
}
},
"roots": [
"desktop",
"lib"
],
"setupTestFrameworkScriptFile": "<rootDir>setup-tests.js",
"testRegex": "(/test/.*\\.jsx?)|(test\\.jsx?)$"
},
"prettier": {
"bracketSpacing": true,
"singleQuote": true,
Expand Down

0 comments on commit 6b0fd14

Please sign in to comment.