Skip to content

Commit cd72a2b

Browse files
authored
fix: replace deprecated and broken package jest-plugin-filename with jest-watch-typeahead (#685)
1 parent fa95686 commit cd72a2b

5 files changed

+17
-40
lines changed

jest.bundle.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ module.exports = {
5050
transform: {
5151
'^.+\\.js$': '<rootDir>/test/transform-babel-jest.js',
5252
},
53-
watchPlugins: ['jest-plugin-filename', 'jest-watch-master'],
53+
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-master'],
5454
};

jest.eslint.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ module.exports = {
33
displayName: 'eslint',
44
testMatch: ['<rootDir>/**/*.js'],
55
testPathIgnorePatterns: ['/node_modules/', '.public/', 'dist/'],
6-
watchPlugins: ['jest-plugin-filename'],
6+
watchPlugins: ['jest-watch-typeahead/filename'],
77
};

jest.test.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ module.exports = {
2929
transform: {
3030
'^.+\\.js$': '<rootDir>/test/transform-babel-jest.js',
3131
},
32-
watchPlugins: ['jest-plugin-filename', 'jest-watch-master'],
32+
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-master'],
3333
};

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@
148148
"jest-dom": "3.1.3",
149149
"jest-enzyme": "7.0.2",
150150
"jest-localstorage-mock": "2.4.0",
151-
"jest-plugin-filename": "0.0.1",
152151
"jest-puppeteer": "4.1.1",
153152
"jest-runner-eslint": "0.7.3",
154153
"jest-silent-reporter": "0.1.2",
155154
"jest-validate": "24.7.0",
156155
"jest-watch-master": "1.0.0",
156+
"jest-watch-typeahead": "0.3.0",
157157
"json-loader": "0.5.7",
158158
"lint-staged": "8.1.5",
159159
"markdown-loader": "5.0.0",

yarn.lock

+13-36
Original file line numberDiff line numberDiff line change
@@ -4091,11 +4091,6 @@ clone-deep@^0.2.4:
40914091
lazy-cache "^1.0.3"
40924092
shallow-clone "^0.1.2"
40934093

4094-
clorox@^1.0.1:
4095-
version "1.0.3"
4096-
resolved "https://registry.yarnpkg.com/clorox/-/clorox-1.0.3.tgz#6fa63653f280c33d69f548fb14d239ddcfa1590d"
4097-
integrity sha512-w3gKAUKMJYmmaJyc+p+iDrDtLvsFasrx/y6/zWo2U1TZfsz3y4Vl4T9PHCZrOwk1eMTOSRI6xHdpDR4PhTdy8Q==
4098-
40994094
co@^4.6.0:
41004095
version "4.6.0"
41014096
resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
@@ -8128,19 +8123,6 @@ jest-mock@^24.7.0:
81288123
dependencies:
81298124
"@jest/types" "^24.7.0"
81308125

8131-
8132-
version "0.0.1"
8133-
resolved "https://registry.yarnpkg.com/jest-plugin-filename/-/jest-plugin-filename-0.0.1.tgz#786c458611c013b758e2640ec695f9015f8c7d95"
8134-
integrity sha512-T2VGDDF0sHhCdJZh9/rbkL8zHZhPkGZf8plWPd3jbig3nQTWvXQUFRU0RSRNbn+FhZLEKP78SR9IMsCx76NIew==
8135-
dependencies:
8136-
ansi-escapes "^3.0.0"
8137-
chalk "^2.3.1"
8138-
lodash "4.17.5"
8139-
prompts "git://github.com/terkelg/prompts.git#792824f8e5bfe3d632da0e48be23ab718b8f6646"
8140-
slash "^1.0.0"
8141-
string-length "^2.0.0"
8142-
strip-ansi "^4.0.0"
8143-
81448126
jest-pnp-resolver@^1.2.1:
81458127
version "1.2.1"
81468128
resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.1.tgz#ecdae604c077a7fbc70defb6d517c3c1c898923a"
@@ -8311,7 +8293,19 @@ [email protected]:
83118293
dependencies:
83128294
chalk "^2.0.0"
83138295

8314-
jest-watcher@^24.7.1:
8296+
8297+
version "0.3.0"
8298+
resolved "https://registry.yarnpkg.com/jest-watch-typeahead/-/jest-watch-typeahead-0.3.0.tgz#f56d9ee17ea71ecbf8253fed213df3185a1584c9"
8299+
integrity sha512-+uOtlppt9ysST6k6ZTqsPI0WNz2HLa8bowiZylZoQCQaAVn7XsVmHhZREkz73FhKelrFrpne4hQQjdq42nFEmA==
8300+
dependencies:
8301+
ansi-escapes "^3.0.0"
8302+
chalk "^2.4.1"
8303+
jest-watcher "^24.3.0"
8304+
slash "^2.0.0"
8305+
string-length "^2.0.0"
8306+
strip-ansi "^5.0.0"
8307+
8308+
jest-watcher@^24.3.0, jest-watcher@^24.7.1:
83158309
version "24.7.1"
83168310
resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-24.7.1.tgz#e161363d7f3f4e1ef3d389b7b3a0aad247b673f5"
83178311
integrity sha512-Wd6TepHLRHVKLNPacEsBwlp9raeBIO+01xrN24Dek4ggTS8HHnOzYSFnvp+6MtkkJ3KfMzy220KTi95e2rRkrw==
@@ -8956,11 +8950,6 @@ [email protected], lodash@>4.17.4, lodash@^4.0.1, lodash@^4.15.0, lodash@^4.17.10,
89568950
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d"
89578951
integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==
89588952

8959-
8960-
version "4.17.5"
8961-
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511"
8962-
integrity sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==
8963-
89648953
log-symbols@^1.0.2:
89658954
version "1.0.2"
89668955
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18"
@@ -10678,13 +10667,6 @@ prompts@^2.0.1, prompts@^2.0.4:
1067810667
kleur "^3.0.2"
1067910668
sisteransi "^1.0.0"
1068010669

10681-
"prompts@git://github.com/terkelg/prompts.git#792824f8e5bfe3d632da0e48be23ab718b8f6646":
10682-
version "0.1.4"
10683-
resolved "git://github.com/terkelg/prompts.git#792824f8e5bfe3d632da0e48be23ab718b8f6646"
10684-
dependencies:
10685-
clorox "^1.0.1"
10686-
sisteransi "^0.1.0"
10687-
1068810670
prop-types-exact@^1.2.0:
1068910671
version "1.2.0"
1069010672
resolved "https://registry.yarnpkg.com/prop-types-exact/-/prop-types-exact-1.2.0.tgz#825d6be46094663848237e3925a98c6e944e9869"
@@ -12271,11 +12253,6 @@ [email protected]:
1227112253
nise "^1.4.8"
1227212254
supports-color "^5.5.0"
1227312255

12274-
sisteransi@^0.1.0:
12275-
version "0.1.1"
12276-
resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-0.1.1.tgz#5431447d5f7d1675aac667ccd0b865a4994cb3ce"
12277-
integrity sha512-PmGOd02bM9YO5ifxpw36nrNMBTptEtfRl4qUYl9SndkolplkrZZOW7PGHjrZL53QvMVj9nQ+TKqUnRsw4tJa4g==
12278-
1227912256
sisteransi@^1.0.0:
1228012257
version "1.0.0"
1228112258
resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.0.tgz#77d9622ff909080f1c19e5f4a1df0c1b0a27b88c"

0 commit comments

Comments
 (0)