From 404c1ca45153a1845924e0fa54e7fd6c8852dcde Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Tue, 20 Aug 2019 11:50:25 +0200 Subject: [PATCH] downgrade ansi-escapes for test mocking --- packages/jest-core/package.json | 3 ++- packages/jest-watcher/package.json | 5 ++++- yarn.lock | 7 +++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/packages/jest-core/package.json b/packages/jest-core/package.json index d8a45bb83dfb..636e2e24ea1b 100644 --- a/packages/jest-core/package.json +++ b/packages/jest-core/package.json @@ -10,7 +10,7 @@ "@jest/test-result": "^24.9.0", "@jest/transform": "^24.9.0", "@jest/types": "^24.9.0", - "ansi-escapes": "^4.2.1", + "ansi-escapes": "^3.0.0", "chalk": "^2.0.1", "exit": "^0.1.2", "graceful-fs": "^4.1.15", @@ -36,6 +36,7 @@ }, "devDependencies": { "@jest/test-sequencer": "^24.9.0", + "@types/ansi-escapes": "^3.0.1", "@types/exit": "^0.1.30", "@types/graceful-fs": "^4.1.2", "@types/micromatch": "^3.1.0", diff --git a/packages/jest-watcher/package.json b/packages/jest-watcher/package.json index bf867c8b351e..f16972592120 100644 --- a/packages/jest-watcher/package.json +++ b/packages/jest-watcher/package.json @@ -7,11 +7,14 @@ "@jest/test-result": "^24.9.0", "@jest/types": "^24.9.0", "@types/yargs": "^13.0.0", - "ansi-escapes": "^4.2.1", + "ansi-escapes": "^3.0.0", "chalk": "^2.0.1", "jest-util": "^24.9.0", "string-length": "^3.1.0" }, + "devDependencies": { + "@types/ansi-escapes": "^3.0.0" + }, "repository": { "type": "git", "url": "https://github.com/facebook/jest", diff --git a/yarn.lock b/yarn.lock index 433e2feec955..2b8e3e7e00ec 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1733,6 +1733,13 @@ "@testing-library/dom" "^6.0.0" "@types/testing-library__react" "^9.1.0" +"@types/ansi-escapes@^3.0.0", "@types/ansi-escapes@^3.0.1": + version "3.0.1" + resolved "https://registry.yarnpkg.com/@types/ansi-escapes/-/ansi-escapes-3.0.1.tgz#328e46c6ac3177ca4cf2efdeed326cf77da01ef7" + integrity sha512-GD/QLUGxSvy3yGQb+m12qsRtP4p/dewNePDb5F8qV19CXuO+gtbsmMjjsClpG/Nu84y8SF1zPKrTnQZHDiPUgg== + dependencies: + "@types/node" "*" + "@types/ansi-regex@^4.0.0": version "4.0.0" resolved "https://registry.yarnpkg.com/@types/ansi-regex/-/ansi-regex-4.0.0.tgz#cb20bb66da7700ea9b26f16971f03f0e092eddad"