Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

Commit

Permalink
Add Jest typeahead plugin (facebook#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 13ac4f0 commit c770726
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
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 scripts/utils/createJestConfig.js
Original file line number Diff line number Diff line change
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 c770726

Please sign in to comment.