mirror of
https://github.com/strapi/strapi.git
synced 2025-08-06 15:53:11 +00:00
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:
commit
cc30ed1055
@ -59,4 +59,7 @@ module.exports = {
|
|||||||
transformIgnorePatterns: ['node_modules/(?!(react-dnd|dnd-core|react-dnd-html5-backend)/)'],
|
transformIgnorePatterns: ['node_modules/(?!(react-dnd|dnd-core|react-dnd-html5-backend)/)'],
|
||||||
testMatch: ['/**/tests/**/?(*.)+(spec|test).[jt]s?(x)'],
|
testMatch: ['/**/tests/**/?(*.)+(spec|test).[jt]s?(x)'],
|
||||||
testURL: 'http://localhost:1337/admin',
|
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'],
|
||||||
};
|
};
|
||||||
|
@ -3,4 +3,7 @@ module.exports = {
|
|||||||
setupFilesAfterEnv: ['<rootDir>/test/unit.setup.js'],
|
setupFilesAfterEnv: ['<rootDir>/test/unit.setup.js'],
|
||||||
modulePathIgnorePatterns: ['.cache'],
|
modulePathIgnorePatterns: ['.cache'],
|
||||||
testMatch: ['/**/__tests__/**/*.[jt]s?(x)'],
|
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'],
|
||||||
};
|
};
|
||||||
|
@ -101,6 +101,7 @@
|
|||||||
"jest": "26.6.3",
|
"jest": "26.6.3",
|
||||||
"jest-circus": "26.6.3",
|
"jest-circus": "26.6.3",
|
||||||
"jest-cli": "26.6.3",
|
"jest-cli": "26.6.3",
|
||||||
|
"jest-watch-typeahead": "0.6.5",
|
||||||
"lerna": "4.0.0",
|
"lerna": "4.0.0",
|
||||||
"lint-staged": "10.5.4",
|
"lint-staged": "10.5.4",
|
||||||
"lodash": "4.17.21",
|
"lodash": "4.17.21",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user