Add back typeahead test filtering for Jest (#5368)
This commit is contained in:
Родитель
4423c5c453
Коммит
8f29ffa416
|
@ -76,6 +76,7 @@ Here are a few tips:
|
|||
* If you had typed `a` when you first started then [jest][] will continue to
|
||||
run the full suite even when you change specific files. Type `o` to switch
|
||||
back to the mode of only running tests related to the files you are changing.
|
||||
* Sometimes running tests related to your file changes is slow. In these cases, you can type `p` or `t` to filter tests by name while you working fixing a specific test suite. [More info](https://github.com/jest-community/jest-watch-typeahead).
|
||||
* If you see something like `Error watching file for changes: EMFILE` on Mac OS
|
||||
then `brew install watchman` might fix it.
|
||||
See https://github.com/facebook/jest/issues/1767
|
||||
|
|
|
@ -46,5 +46,9 @@ module.exports = {
|
|||
transformIgnorePatterns: [
|
||||
'<rootDir>/node_modules/',
|
||||
],
|
||||
watchPlugins: [
|
||||
'jest-watch-typeahead/filename',
|
||||
'jest-watch-typeahead/testname',
|
||||
],
|
||||
verbose: false,
|
||||
};
|
||||
|
|
|
@ -252,6 +252,7 @@
|
|||
"intl-locales-supported": "^1.0.0",
|
||||
"jest": "^23.1.0",
|
||||
"jest-enzyme": "^6.0.0",
|
||||
"jest-watch-typeahead": "^0.1.0",
|
||||
"json-loader": "^0.5.4",
|
||||
"mock-express-request": "^0.2.0",
|
||||
"mock-express-response": "^0.2.0",
|
||||
|
|
27
yarn.lock
27
yarn.lock
|
@ -1677,6 +1677,14 @@ chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.2:
|
|||
escape-string-regexp "^1.0.5"
|
||||
supports-color "^5.3.0"
|
||||
|
||||
chalk@^2.3.1:
|
||||
version "2.4.1"
|
||||
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
|
||||
dependencies:
|
||||
ansi-styles "^3.2.1"
|
||||
escape-string-regexp "^1.0.5"
|
||||
supports-color "^5.3.0"
|
||||
|
||||
chalk@~0.4.0:
|
||||
version "0.4.0"
|
||||
resolved "https://registry.yarnpkg.com/chalk/-/chalk-0.4.0.tgz#5199a3ddcd0c1efe23bc08c1b027b06176e0c64f"
|
||||
|
@ -5258,6 +5266,17 @@ jest-validate@^23.0.1:
|
|||
leven "^2.1.0"
|
||||
pretty-format "^23.0.1"
|
||||
|
||||
jest-watch-typeahead@^0.1.0:
|
||||
version "0.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-watch-typeahead/-/jest-watch-typeahead-0.1.0.tgz#16b6cfe087fc7f181daadea5abeb68a0fcc70eac"
|
||||
dependencies:
|
||||
ansi-escapes "^3.0.0"
|
||||
chalk "^2.3.1"
|
||||
lodash "4.17.5"
|
||||
slash "^1.0.0"
|
||||
string-length "^2.0.0"
|
||||
strip-ansi "^4.0.0"
|
||||
|
||||
jest-watcher@^23.1.0:
|
||||
version "23.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-23.1.0.tgz#a8d5842e38d9fb4afff823df6abb42a58ae6cdbd"
|
||||
|
@ -5717,14 +5736,14 @@ lodash.uniq@^4.5.0:
|
|||
version "4.5.0"
|
||||
resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
|
||||
|
||||
lodash@4.17.5, lodash@^4.0.0, lodash@^4.11.1, lodash@^4.12.0, lodash@^4.13.1, lodash@^4.14.0, lodash@^4.15.0, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0, lodash@^4.5.1, lodash@^4.6.1, lodash@~4.17.4:
|
||||
version "4.17.5"
|
||||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511"
|
||||
|
||||
lodash@^3.10.1, lodash@^3.7.0:
|
||||
version "3.10.1"
|
||||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"
|
||||
|
||||
lodash@^4.0.0, lodash@^4.11.1, lodash@^4.12.0, lodash@^4.13.1, lodash@^4.14.0, lodash@^4.15.0, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0, lodash@^4.5.1, lodash@^4.6.1, lodash@~4.17.4:
|
||||
version "4.17.5"
|
||||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511"
|
||||
|
||||
log-symbols@^2.0.0, log-symbols@^2.1.0:
|
||||
version "2.2.0"
|
||||
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a"
|
||||
|
|
Загрузка…
Ссылка в новой задаче