Skip to content

Commit 782d71b

Browse files
gaearonianschmitz
authored andcommitted
Add Jest typeahead plugin (#5213)
* Add Jest typeahead plugin * Update jest-watch-typeahead to 0.2.1
1 parent 313e472 commit 782d71b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

packages/react-scripts/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"jest": "23.6.0",
5353
"jest-pnp-resolver": "1.0.2",
5454
"jest-resolve": "23.6.0",
55+
"jest-watch-typeahead": "^0.2.1",
5556
"mini-css-extract-plugin": "0.4.3",
5657
"optimize-css-assets-webpack-plugin": "5.0.1",
5758
"pnp-webpack-plugin": "1.2.1",

packages/react-scripts/scripts/utils/createJestConfig.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ module.exports = (resolve, rootDir, isEjecting) => {
6464
moduleFileExtensions: [...paths.moduleFileExtensions, 'node'].filter(
6565
ext => !ext.includes('mjs')
6666
),
67+
watchPlugins: [
68+
require.resolve('jest-watch-typeahead/filename'),
69+
require.resolve('jest-watch-typeahead/testname'),
70+
],
6771
};
6872
if (rootDir) {
6973
config.rootDir = rootDir;

0 commit comments

Comments
 (0)