From 728977de2d422f714f3aaa6ed9a126e4a40928f6 Mon Sep 17 00:00:00 2001 From: Matt Phillips Date: Tue, 12 Jun 2018 19:16:45 +0100 Subject: [PATCH 1/5] Add typeahead watch plugin --- yarn.lock | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/yarn.lock b/yarn.lock index 22e5b83b0035..a0243bccae3c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8305,11 +8305,19 @@ lodash.uniq@^4.5.0: resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M= -lodash@^4.15.0, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.1, lodash@^4.3.0, lodash@^4.6.1, lodash@~4.17.10: +lodash@^4.15.0, lodash@^4.17.10, lodash@^4.17.4, lodash@^4.17.5: + version "4.17.10" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7" + +lodash@^4.17.11, lodash@~4.17.10: version "4.17.11" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d" integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg== +lodash@^4.2.1, lodash@^4.3.0, lodash@^4.6.1: + version "4.17.5" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511" + log-symbols@2.2.0, log-symbols@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" From 1e728f748b1a5d04b6748cab6be481e0e578f6f2 Mon Sep 17 00:00:00 2001 From: Matt Phillips Date: Tue, 12 Jun 2018 19:20:08 +0100 Subject: [PATCH 2/5] Add changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2079aab40e67..5e2a4819b304 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -522,6 +522,7 @@ We skipped 24.2.0 because a draft was accidentally published. Please use `24.3.0 ### Chore & Maintenance +- Add jest-watch-typeahead as a devDependency ([#6449](https://github.com/facebook/jest/pull/6449/files)) - `[docs]` Add jest-each docs for 1 dimensional arrays ([#6444](https://github.com/facebook/jest/pull/6444/files)) ## 23.1.0 From df4c6c6a6f0023c80010b74808ca910de6882dae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Mon, 18 Mar 2019 17:36:00 +0000 Subject: [PATCH 3/5] update plugin version --- jest.config.js | 4 ++++ package.json | 1 + yarn.lock | 21 +++++++++++++++++++++ 3 files changed, 26 insertions(+) diff --git a/jest.config.js b/jest.config.js index 1d4488d6904d..603dd266b03a 100644 --- a/jest.config.js +++ b/jest.config.js @@ -59,4 +59,8 @@ module.exports = { transform: { '^.+\\.[jt]sx?$': '/packages/babel-jest', }, + watchPlugins: [ + 'jest-watch-typeahead/filename', + 'jest-watch-typeahead/testname', + ], }; diff --git a/package.json b/package.json index 504eeb41d7e3..98cb3884caa2 100644 --- a/package.json +++ b/package.json @@ -134,6 +134,7 @@ ] }, "dependencies": { + "jest-watch-typeahead": "^0.2.1", "opencollective": "^1.0.3" }, "collective": { diff --git a/yarn.lock b/yarn.lock index a0243bccae3c..a7575170ad0b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7672,6 +7672,27 @@ jest-snapshot-serializer-raw@^1.1.0: resolved "https://registry.yarnpkg.com/jest-snapshot-serializer-raw/-/jest-snapshot-serializer-raw-1.1.0.tgz#1d7f09c02f3dbbc3ae70b5b7598fb2f45e37d6c8" integrity sha512-OL3bXRCnSn7Kur3YTGYj+A3Hwh2eyb5QL5VLQ9OSsPBOva7r3sCB0Jf1rOT/KN3ypzH42hrkDz96lpbiMo+AlQ== +jest-watch-typeahead@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/jest-watch-typeahead/-/jest-watch-typeahead-0.2.1.tgz#6c40f232996ca6c39977e929e9f79b189e7d87e4" + integrity sha512-xdhEtKSj0gmnkDQbPTIHvcMmXNUDzYpHLEJ5TFqlaI+schi2NI96xhWiZk9QoesAS7oBmKwWWsHazTrYl2ORgg== + dependencies: + ansi-escapes "^3.0.0" + chalk "^2.4.1" + jest-watcher "^23.1.0" + slash "^2.0.0" + string-length "^2.0.0" + strip-ansi "^5.0.0" + +jest-watcher@^23.1.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-23.4.0.tgz#d2e28ce74f8dad6c6afc922b92cabef6ed05c91c" + integrity sha1-0uKM50+NrWxq/JIrksq+9u0FyRw= + dependencies: + ansi-escapes "^3.0.0" + chalk "^2.0.1" + string-length "^2.0.0" + jest-worker@24.0.0-alpha.6: version "24.0.0-alpha.6" resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-24.0.0-alpha.6.tgz#463681b92c117c57107135c14b9b9d6cd51d80ce" From 85c32167248948e944418386fe25083c2b276535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Mon, 18 Mar 2019 17:48:46 +0000 Subject: [PATCH 4/5] update plugin version --- package.json | 2 +- yarn.lock | 19 +++++-------------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 98cb3884caa2..280ba9e07aa2 100644 --- a/package.json +++ b/package.json @@ -134,7 +134,7 @@ ] }, "dependencies": { - "jest-watch-typeahead": "^0.2.1", + "jest-watch-typeahead": "^0.2.2-0", "opencollective": "^1.0.3" }, "collective": { diff --git a/yarn.lock b/yarn.lock index a7575170ad0b..fabe3a658795 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7672,27 +7672,18 @@ jest-snapshot-serializer-raw@^1.1.0: resolved "https://registry.yarnpkg.com/jest-snapshot-serializer-raw/-/jest-snapshot-serializer-raw-1.1.0.tgz#1d7f09c02f3dbbc3ae70b5b7598fb2f45e37d6c8" integrity sha512-OL3bXRCnSn7Kur3YTGYj+A3Hwh2eyb5QL5VLQ9OSsPBOva7r3sCB0Jf1rOT/KN3ypzH42hrkDz96lpbiMo+AlQ== -jest-watch-typeahead@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/jest-watch-typeahead/-/jest-watch-typeahead-0.2.1.tgz#6c40f232996ca6c39977e929e9f79b189e7d87e4" - integrity sha512-xdhEtKSj0gmnkDQbPTIHvcMmXNUDzYpHLEJ5TFqlaI+schi2NI96xhWiZk9QoesAS7oBmKwWWsHazTrYl2ORgg== +jest-watch-typeahead@^0.2.2-0: + version "0.2.2-0" + resolved "https://registry.yarnpkg.com/jest-watch-typeahead/-/jest-watch-typeahead-0.2.2-0.tgz#6b3ecfc0bc174aaca94b2d127fcfd339af080b0b" + integrity sha512-Mx1Egj7A+FK/CUFs/KSlqPUGPf3cZG6VybcYvy/fJg1GTLeKV8A8Zzphw/Oa4M3uQWRp8EFL3SYvXEPCNyEMVw== dependencies: ansi-escapes "^3.0.0" chalk "^2.4.1" - jest-watcher "^23.1.0" + jest-watcher "^24.3.0" slash "^2.0.0" string-length "^2.0.0" strip-ansi "^5.0.0" -jest-watcher@^23.1.0: - version "23.4.0" - resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-23.4.0.tgz#d2e28ce74f8dad6c6afc922b92cabef6ed05c91c" - integrity sha1-0uKM50+NrWxq/JIrksq+9u0FyRw= - dependencies: - ansi-escapes "^3.0.0" - chalk "^2.0.1" - string-length "^2.0.0" - jest-worker@24.0.0-alpha.6: version "24.0.0-alpha.6" resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-24.0.0-alpha.6.tgz#463681b92c117c57107135c14b9b9d6cd51d80ce" From b31db340241284d74e70210d6ff31a8f4b4dc3fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Mon, 18 Mar 2019 17:50:15 +0000 Subject: [PATCH 5/5] update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e2a4819b304..40d8f961af31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - `[docs]` Improve description of optional arguments in ExpectAPI.md ([#8126](https://github.com/facebook/jest/pull/8126) - `[*]` Move @types/node to the root package.json [#8129](https://github.com/facebook/jest/pull/8129)) - `[*]` Add documentation and tests related to auto-mocking ([#8086](https://github.com/facebook/jest/pull/8099)) +- `[*]` Add `jest-watch-typeahead` as a devDependency ([#6449](https://github.com/facebook/jest/pull/6449/files)) ### Performance @@ -522,7 +523,6 @@ We skipped 24.2.0 because a draft was accidentally published. Please use `24.3.0 ### Chore & Maintenance -- Add jest-watch-typeahead as a devDependency ([#6449](https://github.com/facebook/jest/pull/6449/files)) - `[docs]` Add jest-each docs for 1 dimensional arrays ([#6444](https://github.com/facebook/jest/pull/6444/files)) ## 23.1.0