Add Jest typeahead plugin (#5213)

* Add Jest typeahead plugin

* Update jest-watch-typeahead to 0.2.1
This commit is contained in:
Dan Abramov
2019-02-10 16:13:27 +00:00
committed by Ian Schmitz
parent 313e472331
commit 782d71b957
2 changed files with 5 additions and 0 deletions

View File

@@ -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;