Skip to content

Commit f0502fe

Browse files
project: Add jest watcher for quicker tests runs during development.
1 parent 11ab278 commit f0502fe

File tree

3 files changed

+196
-0
lines changed

3 files changed

+196
-0
lines changed

config/jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ const config = {
1818
},
1919
},
2020
setupFiles: ['<rootDir>/config/setup-tests.js'],
21+
watchPlugins: [
22+
'jest-watch-typeahead/filename',
23+
'jest-watch-typeahead/testname',
24+
],
2125
};
2226

2327
module.exports = config;

package-lock.json

Lines changed: 190 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"prebuild": "npm run cleanup && npm run verify",
3333
"build": "tsc && rollup -c config/rollup.config.js",
3434
"test": "jest -c ./config/jest.config.js",
35+
"test:watch": "npm t -- --watch",
3536
"test:coverage": "npm t -- --verbose --coverage",
3637
"test:ci": "npm t -- --ci",
3738
"validate-js": "tsc -p ./config",
@@ -61,6 +62,7 @@
6162
"@types/node": "~13.11.1",
6263
"@types/prettier": "~2.0.0",
6364
"jest": "~25.3.0",
65+
"jest-watch-typeahead": "~0.6.0",
6466
"prettier": "~2.0.4",
6567
"rollup": "~2.6.1",
6668
"rollup-plugin-babel": "~4.4.0",

0 commit comments

Comments
 (0)