From 4e70b47361af4977b54fd6d09cd95b0a1a946317 Mon Sep 17 00:00:00 2001 From: AlexisG Date: Mon, 23 Dec 2024 10:02:47 +0100 Subject: [PATCH] feat(cozy-viewer): Replace jsdom-sixteen package --- packages/cozy-viewer/jest.config.js | 2 +- packages/cozy-viewer/package.json | 2 +- yarn.lock | 32 ++++++++++------------------- 3 files changed, 13 insertions(+), 23 deletions(-) diff --git a/packages/cozy-viewer/jest.config.js b/packages/cozy-viewer/jest.config.js index 21abefa7ba..cf05aba987 100644 --- a/packages/cozy-viewer/jest.config.js +++ b/packages/cozy-viewer/jest.config.js @@ -1,6 +1,6 @@ module.exports = { testPathIgnorePatterns: ['node_modules', 'dist'], - testEnvironment: 'jest-environment-jsdom-sixteen', + testEnvironment: 'jest-environment-jsdom', testURL: 'http://localhost/', moduleFileExtensions: ['js', 'jsx', 'json', 'styl', 'ts', 'tsx'], moduleDirectories: ['src', 'node_modules'], diff --git a/packages/cozy-viewer/package.json b/packages/cozy-viewer/package.json index 8c10a26d93..cc78ca53c8 100644 --- a/packages/cozy-viewer/package.json +++ b/packages/cozy-viewer/package.json @@ -35,7 +35,7 @@ "identity-obj-proxy": "3.0.0", "jest": "26.6.3", "jest-canvas-mock": "2.3.1", - "jest-environment-jsdom-sixteen": "2.0.0", + "jest-environment-jsdom": "26.6.2", "prop-types": "15.8.1", "react-dom": "16.12.0", "react-test-renderer": "16.12.0", diff --git a/yarn.lock b/yarn.lock index 70d0fad6cc..cf80a0d221 100644 --- a/yarn.lock +++ b/yarn.lock @@ -17167,15 +17167,18 @@ jest-environment-jsdom-sixteen@1.0.3, jest-environment-jsdom-sixteen@^1.0.3: jest-util "^25.1.0" jsdom "^16.2.1" -jest-environment-jsdom-sixteen@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom-sixteen/-/jest-environment-jsdom-sixteen-2.0.0.tgz#0f8c12663ccd9836d248574decffc575bfb091e1" - integrity sha512-BF+8P67aEJcd78TQzwSb9P4a73cArOWb5KgqI8eU6cHRWDIJdDRE8XTeZAmOuDSDhKpuEXjKkXwWB3GOJvqHJQ== +jest-environment-jsdom@26.6.2, jest-environment-jsdom@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz#78d09fe9cf019a357009b9b7e1f101d23bd1da3e" + integrity sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q== dependencies: - "@jest/fake-timers" "^25.1.0" - jest-mock "^25.1.0" - jest-util "^25.1.0" - jsdom "^16.2.1" + "@jest/environment" "^26.6.2" + "@jest/fake-timers" "^26.6.2" + "@jest/types" "^26.6.2" + "@types/node" "*" + jest-mock "^26.6.2" + jest-util "^26.6.2" + jsdom "^16.4.0" jest-environment-jsdom@^24.9.0: version "24.9.0" @@ -17188,19 +17191,6 @@ jest-environment-jsdom@^24.9.0: jest-util "^24.9.0" jsdom "^11.5.1" -jest-environment-jsdom@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz#78d09fe9cf019a357009b9b7e1f101d23bd1da3e" - integrity sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q== - dependencies: - "@jest/environment" "^26.6.2" - "@jest/fake-timers" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/node" "*" - jest-mock "^26.6.2" - jest-util "^26.6.2" - jsdom "^16.4.0" - jest-environment-node@^24.9.0: version "24.9.0" resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-24.9.0.tgz#333d2d2796f9687f2aeebf0742b519f33c1cbfd3"