mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 19:36:20 +00:00
Add ability to search test file on watch mode
This commit is contained in:
parent
d00e14eb7f
commit
0ce0b05bd3
@ -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'],
|
||||
};
|
||||
|
||||
@ -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'],
|
||||
};
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user