From 2aef4fe51adbd15f3237102f76220758a8c64a69 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien <567105+nstepien@users.noreply.github.com> Date: Mon, 15 Jan 2024 12:46:17 +0000 Subject: [PATCH] Pin JSDOM@23.1.0 (#3428) * Quadruple test timeouts * pin jsdom --- package.json | 16 ++++++++-------- vite.config.ts | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index d4f86c0f61..b1cbd5b93d 100644 --- a/package.json +++ b/package.json @@ -68,17 +68,17 @@ "@microsoft/api-extractor": "^7.23.0", "@rollup/plugin-babel": "^6.0.3", "@rollup/plugin-node-resolve": "^15.1.0", - "@testing-library/jest-dom": "^6.0.0", - "@testing-library/react": "^14.0.0", - "@testing-library/user-event": "^14.1.1", + "@testing-library/jest-dom": "^6.2.0", + "@testing-library/react": "^14.1.2", + "@testing-library/user-event": "^14.5.2", "@types/lodash-es": "^4.17.7", "@types/node": "^20.10.3", "@types/react": "^18.2.35", "@types/react-dom": "^18.2.4", "@typescript-eslint/eslint-plugin": "^6.1.0", "@typescript-eslint/parser": "^6.1.0", - "@vitejs/plugin-react": "^4.0.2", - "@vitest/coverage-v8": "^1.0.0", + "@vitejs/plugin-react": "^4.2.1", + "@vitest/coverage-v8": "^1.2.0", "@wyw-in-js/rollup": "^0.2.2", "@wyw-in-js/vite": "^0.2.2", "babel-plugin-optimize-clsx": "^2.6.2", @@ -91,7 +91,7 @@ "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-sonarjs": "^0.23.0", "eslint-plugin-testing-library": "^6.2.0", - "jsdom": "^23.0.1", + "jsdom": "23.1.0", "jspdf": "^2.5.1", "jspdf-autotable": "^3.5.23", "lodash-es": "^4.17.21", @@ -105,8 +105,8 @@ "rollup": "^4.0.2", "rollup-plugin-postcss": "^4.0.2", "typescript": "~5.3.2", - "vite": "^5.0.0", - "vitest": "^1.0.0" + "vite": "^5.0.11", + "vitest": "^1.2.0" }, "peerDependencies": { "react": "^18.0", diff --git a/vite.config.ts b/vite.config.ts index a1ae2b5047..081c187717 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -32,7 +32,6 @@ export default defineConfig({ test: { root: '.', environment: 'jsdom', - pool: 'vmThreads', globals: true, coverage: { provider: 'v8', @@ -40,6 +39,7 @@ export default defineConfig({ include: ['src/**/*.{ts,tsx}', '!src/types.ts'], reporter: ['text', 'json'] }, + pool: 'vmThreads', poolOptions: { vmThreads: { useAtomics: true