Add ability to search test file on watch mode

This commit is contained in:
Hung Viet Nguyen 2022-03-12 14:36:58 +07:00
parent d00e14eb7f
commit 0ce0b05bd3
No known key found for this signature in database
GPG Key ID: 5BCE6E47F46293F2
3 changed files with 3 additions and 0 deletions

View File

@ -59,4 +59,5 @@ module.exports = {
transformIgnorePatterns: ['node_modules/(?!(react-dnd|dnd-core|react-dnd-html5-backend)/)'],
testMatch: ['/**/tests/**/?(*.)+(spec|test).[jt]s?(x)'],
testURL: 'http://localhost:1337/admin',
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
};

View File

@ -3,4 +3,5 @@ module.exports = {
setupFilesAfterEnv: ['<rootDir>/test/unit.setup.js'],
modulePathIgnorePatterns: ['.cache'],
testMatch: ['/**/__tests__/**/*.[jt]s?(x)'],
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
};

View File

@ -101,6 +101,7 @@
"jest": "26.6.3",
"jest-circus": "26.6.3",
"jest-cli": "26.6.3",
"jest-watch-typeahead": "0.6.5",
"lerna": "4.0.0",
"lint-staged": "10.5.4",
"lodash": "4.17.21",