diff --git a/jest.base-config.front.js b/jest.base-config.front.js index d6453be9f0..8024786bd4 100644 --- a/jest.base-config.front.js +++ b/jest.base-config.front.js @@ -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'], }; diff --git a/jest.base-config.js b/jest.base-config.js index 77a593e8ef..5fbfba0f6e 100644 --- a/jest.base-config.js +++ b/jest.base-config.js @@ -3,4 +3,5 @@ module.exports = { setupFilesAfterEnv: ['/test/unit.setup.js'], modulePathIgnorePatterns: ['.cache'], testMatch: ['/**/__tests__/**/*.[jt]s?(x)'], + watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'], }; diff --git a/package.json b/package.json index c5a63c3a9e..0dfed0ab38 100644 --- a/package.json +++ b/package.json @@ -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",