Merge pull request #12820 from nvh95/add-jest-watch-typeahead

[Jest] Add ability to search and navigate test file on watch mode
This commit is contained in:
Gustav Hansen 2022-06-23 13:01:23 +02:00 committed by GitHub
commit cc30ed1055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6903 additions and 655 deletions

View File

@ -59,4 +59,7 @@ 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',
// Use `jest-watch-typeahead` version 0.6.5. Newest version 1.0.0 does not support jest@26
// Reference: https://github.com/jest-community/jest-watch-typeahead/releases/tag/v1.0.0
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
};

View File

@ -3,4 +3,7 @@ module.exports = {
setupFilesAfterEnv: ['<rootDir>/test/unit.setup.js'],
modulePathIgnorePatterns: ['.cache'],
testMatch: ['/**/__tests__/**/*.[jt]s?(x)'],
// Use `jest-watch-typeahead` version 0.6.5. Newest version 1.0.0 does not support jest@26
// Reference: https://github.com/jest-community/jest-watch-typeahead/releases/tag/v1.0.0
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",

7551
yarn.lock

File diff suppressed because it is too large Load Diff