mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-24 05:05:53 +08:00
Add Jest typeahead plugin (#5213)
* Add Jest typeahead plugin * Update jest-watch-typeahead to 0.2.1
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user