From 69dc645f0e213c3d6e7a6c6d16681eca9bdf8910 Mon Sep 17 00:00:00 2001 From: jamelreid Date: Wed, 1 Dec 2021 14:34:28 -0500 Subject: [PATCH] Added the jest-circus package In jest version before 27, we need to use jest-circus. For 27 and after, jest-circus is the default test runner. --- packages/js/e2e-environment/package.json | 5 +++-- pnpm-lock.yaml | 26 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/packages/js/e2e-environment/package.json b/packages/js/e2e-environment/package.json index 33e576f5420..8955bc1409c 100644 --- a/packages/js/e2e-environment/package.json +++ b/packages/js/e2e-environment/package.json @@ -32,8 +32,8 @@ "jest": "^25.1.0", "jest-each": "25.5.0", "jest-puppeteer": "^4.4.0", - "request": "^2.88.2", - "node-stream-zip": "^1.13.6" + "node-stream-zip": "^1.13.6", + "request": "^2.88.2" }, "devDependencies": { "@babel/cli": "7.12.8", @@ -42,6 +42,7 @@ "@babel/preset-env": "7.12.7", "@wordpress/eslint-plugin": "7.3.0", "eslint": "^8.1.0", + "jest-circus": "25.1.0", "ndb": "^1.1.5", "semver": "^7.3.2" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 82eef76d9f5..e52ccadcc8d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -125,6 +125,7 @@ importers: commander: 4.1.1 eslint: ^8.1.0 jest: ^25.1.0 + jest-circus: 25.1.0 jest-each: 25.5.0 jest-puppeteer: ^4.4.0 ndb: ^1.1.5 @@ -152,6 +153,7 @@ importers: '@babel/preset-env': 7.12.7_@babel+core@7.12.9 '@wordpress/eslint-plugin': 7.3.0_eslint@8.1.0+typescript@4.2.4 eslint: 8.1.0 + jest-circus: 25.1.0 ndb: 1.1.5 semver: 7.3.5 @@ -13277,6 +13279,30 @@ packages: throat: 6.0.1 dev: true + /jest-circus/25.1.0: + resolution: {integrity: sha512-Axlcr2YMxVarMW4SiZhCFCjNKhdF4xF9AIdltyutQOKyyDT795Kl/fzI95O0l8idE51Npj2wDj5GhrV7uEoEJA==} + engines: {node: '>= 8.3'} + dependencies: + '@babel/traverse': 7.16.3 + '@jest/environment': 25.5.0 + '@jest/test-result': 25.5.0 + '@jest/types': 25.5.0 + chalk: 3.0.0 + co: 4.6.0 + expect: 25.5.0 + is-generator-fn: 2.1.0 + jest-each: 25.5.0 + jest-matcher-utils: 25.5.0 + jest-message-util: 25.5.0 + jest-snapshot: 25.5.1 + jest-util: 25.5.0 + pretty-format: 25.5.0 + stack-utils: 1.0.5 + throat: 5.0.0 + transitivePeerDependencies: + - supports-color + dev: true + /jest-circus/27.3.1: resolution: {integrity: sha512-v1dsM9II6gvXokgqq6Yh2jHCpfg7ZqV4jWY66u7npz24JnhP3NHxI0sKT7+ZMQ7IrOWHYAaeEllOySbDbWsiXw==} engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}