Skip to content

Commit

Permalink
Add Jest typeahead plugin (#5213)
Browse files Browse the repository at this point in the history
* Add Jest typeahead plugin

* Update jest-watch-typeahead to 0.2.1
  • Loading branch information
gaearon authored and ianschmitz committed Feb 10, 2019
1 parent 313e472 commit 782d71b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-scripts/package.json
Expand Up @@ -52,6 +52,7 @@
"jest": "23.6.0",
"jest-pnp-resolver": "1.0.2",
"jest-resolve": "23.6.0",
"jest-watch-typeahead": "^0.2.1",
"mini-css-extract-plugin": "0.4.3",
"optimize-css-assets-webpack-plugin": "5.0.1",
"pnp-webpack-plugin": "1.2.1",
Expand Down
4 changes: 4 additions & 0 deletions packages/react-scripts/scripts/utils/createJestConfig.js
Expand Up @@ -64,6 +64,10 @@ module.exports = (resolve, rootDir, isEjecting) => {
moduleFileExtensions: [...paths.moduleFileExtensions, 'node'].filter(
ext => !ext.includes('mjs')
),
watchPlugins: [
require.resolve('jest-watch-typeahead/filename'),
require.resolve('jest-watch-typeahead/testname'),
],
};
if (rootDir) {
config.rootDir = rootDir;
Expand Down

0 comments on commit 782d71b

Please sign in to comment.