From f2c3156c161648334b49f3059f197a1a428ecbbe Mon Sep 17 00:00:00 2001 From: Rohan Bansal Date: Fri, 26 Apr 2024 15:08:59 +0530 Subject: [PATCH] fix: test vitest env update --- aform/package.json | 2 +- aform/vite.config.ts | 7 ++ atable/package.json | 2 +- atable/vite.config.ts | 7 ++ common/config/rush/pnpm-lock.yaml | 141 +++++++++++++++++++++--------- 5 files changed, 115 insertions(+), 44 deletions(-) diff --git a/aform/package.json b/aform/package.json index 54fdd4c9..2966144b 100644 --- a/aform/package.json +++ b/aform/package.json @@ -63,7 +63,7 @@ "eslint-config-prettier": "^8.8.0", "eslint-plugin-vue": "^9.11.1", "histoire": "^0.17.17", - "jsdom": "^22.0.0", + "jsdom": "^24.0.0", "typescript": "^5.4.5", "vite": "^5.2.9", "vitest": "^1.5.0", diff --git a/aform/vite.config.ts b/aform/vite.config.ts index 843f27dc..ce4be6db 100644 --- a/aform/vite.config.ts +++ b/aform/vite.config.ts @@ -38,6 +38,13 @@ export default defineConfig({ test: { globals: true, environment: 'jsdom', + deps: { + optimizer: { + web: { + include: ['@stonecrop/utilities'], + }, + }, + }, coverage: { provider: 'v8', thresholds: { diff --git a/atable/package.json b/atable/package.json index 1d30f15a..b16d3a16 100644 --- a/atable/package.json +++ b/atable/package.json @@ -63,7 +63,7 @@ "eslint-config-prettier": "^8.8.0", "eslint-plugin-vue": "^9.11.1", "histoire": "^0.17.17", - "jsdom": "^22.0.0", + "jsdom": "^24.0.0", "typescript": "^5.4.5", "vite": "^5.2.9", "vitest": "^1.5.0", diff --git a/atable/vite.config.ts b/atable/vite.config.ts index 8997bdeb..8d0f4b39 100644 --- a/atable/vite.config.ts +++ b/atable/vite.config.ts @@ -42,6 +42,13 @@ export default defineConfig({ test: { globals: true, environment: 'jsdom', + deps: { + optimizer: { + web: { + include: ['@stonecrop/utilities'], + }, + }, + }, coverage: { provider: 'v8', thresholds: { diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index e083a5fa..46d18f7a 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -66,8 +66,8 @@ importers: specifier: ^0.17.17 version: 0.17.17(sass@1.75.0)(vite@5.2.9) jsdom: - specifier: ^22.0.0 - version: 22.1.0 + specifier: ^24.0.0 + version: 24.0.0 typescript: specifier: ^5.4.5 version: 5.4.5 @@ -76,7 +76,7 @@ importers: version: 5.2.9(sass@1.75.0) vitest: specifier: ^1.5.0 - version: 1.5.0(@vitest/ui@1.5.0)(jsdom@22.1.0) + version: 1.5.0(@vitest/ui@1.5.0)(jsdom@24.0.0) vue-router: specifier: ^4 version: 4.2.5(vue@3.4.23) @@ -139,8 +139,8 @@ importers: specifier: ^0.17.17 version: 0.17.17(sass@1.75.0)(vite@5.2.9) jsdom: - specifier: ^22.0.0 - version: 22.1.0 + specifier: ^24.0.0 + version: 24.0.0 typescript: specifier: ^5.4.5 version: 5.4.5 @@ -149,7 +149,7 @@ importers: version: 5.2.9(sass@1.75.0) vitest: specifier: ^1.5.0 - version: 1.5.0(@vitest/ui@1.5.0)(jsdom@22.1.0) + version: 1.5.0(@vitest/ui@1.5.0)(jsdom@24.0.0) vue-router: specifier: ^4 version: 4.2.5(vue@3.4.23) @@ -1537,7 +1537,7 @@ packages: std-env: 3.7.0 strip-literal: 2.1.0 test-exclude: 6.0.0 - vitest: 1.5.0(@vitest/ui@1.5.0)(jsdom@22.1.0) + vitest: 1.5.0(@vitest/ui@1.5.0)(jsdom@24.0.0) transitivePeerDependencies: - supports-color dev: true @@ -1584,7 +1584,7 @@ packages: pathe: 1.1.2 picocolors: 1.0.0 sirv: 2.0.4 - vitest: 1.5.0(@vitest/ui@1.5.0)(jsdom@22.1.0) + vitest: 1.5.0(@vitest/ui@1.5.0)(jsdom@24.0.0) dev: true /@vitest/utils@1.5.0: @@ -1758,6 +1758,15 @@ packages: - supports-color dev: true + /agent-base@7.1.1: + resolution: {integrity: sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==} + engines: {node: '>= 14'} + dependencies: + debug: 4.3.4(supports-color@8.1.1) + transitivePeerDependencies: + - supports-color + dev: true + /aggregate-error@3.1.0: resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==} engines: {node: '>=8'} @@ -2206,9 +2215,9 @@ packages: cssom: 0.3.8 dev: true - /cssstyle@3.0.0: - resolution: {integrity: sha512-N4u2ABATi3Qplzf0hWbVCdjenim8F3ojEXpBDF5hBpjzW182MjNGLqfmQ0SkSPeQ+V86ZXgeH8aXj6kayd4jgg==} - engines: {node: '>=14'} + /cssstyle@4.0.1: + resolution: {integrity: sha512-8ZYiJ3A/3OkDd093CBT/0UKDWry7ak4BdPTFP2+QEP7cmhouyq/Up709ASSj2cK02BbZiMgk7kYjZNS4QP5qrQ==} + engines: {node: '>=18'} dependencies: rrweb-cssom: 0.6.0 dev: true @@ -2348,13 +2357,12 @@ packages: whatwg-url: 11.0.0 dev: true - /data-urls@4.0.0: - resolution: {integrity: sha512-/mMTei/JXPqvFqQtfyTowxmJVwr2PVAeCcDxyFf6LhoOu/09TX2OX3kb2wzi4DMXcfj4OItwDOnhl5oziPnT6g==} - engines: {node: '>=14'} + /data-urls@5.0.0: + resolution: {integrity: sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg==} + engines: {node: '>=18'} dependencies: - abab: 2.0.6 - whatwg-mimetype: 3.0.0 - whatwg-url: 12.0.1 + whatwg-mimetype: 4.0.0 + whatwg-url: 14.0.0 dev: true /dayjs@1.11.10: @@ -3213,6 +3221,13 @@ packages: whatwg-encoding: 2.0.0 dev: true + /html-encoding-sniffer@4.0.0: + resolution: {integrity: sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==} + engines: {node: '>=18'} + dependencies: + whatwg-encoding: 3.1.1 + dev: true + /html-escaper@2.0.2: resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} dev: true @@ -3228,6 +3243,16 @@ packages: - supports-color dev: true + /http-proxy-agent@7.0.2: + resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==} + engines: {node: '>= 14'} + dependencies: + agent-base: 7.1.1 + debug: 4.3.4(supports-color@8.1.1) + transitivePeerDependencies: + - supports-color + dev: true + /http-signature@1.3.6: resolution: {integrity: sha512-3adrsD6zqo4GsTqtO7FyrejHNv+NgiIfAfv68+jVlFmSr9OGy7zrxONceFRLKvnnZA5jbxQBX1u9PpB6Wi32Gw==} engines: {node: '>=0.10'} @@ -3247,6 +3272,16 @@ packages: - supports-color dev: true + /https-proxy-agent@7.0.4: + resolution: {integrity: sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg==} + engines: {node: '>= 14'} + dependencies: + agent-base: 7.1.1 + debug: 4.3.4(supports-color@8.1.1) + transitivePeerDependencies: + - supports-color + dev: true + /human-signals@1.1.1: resolution: {integrity: sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==} engines: {node: '>=8.12.0'} @@ -3518,24 +3553,22 @@ packages: - utf-8-validate dev: true - /jsdom@22.1.0: - resolution: {integrity: sha512-/9AVW7xNbsBv6GfWho4TTNjEo9fe6Zhf9O7s0Fhhr3u+awPwAJMKwAMXnkk5vBxflqLW9hTHX/0cs+P3gW+cQw==} - engines: {node: '>=16'} + /jsdom@24.0.0: + resolution: {integrity: sha512-UDS2NayCvmXSXVP6mpTj+73JnNQadZlr9N68189xib2tx5Mls7swlTNao26IoHv46BZJFvXygyRtyXd1feAk1A==} + engines: {node: '>=18'} peerDependencies: - canvas: ^2.5.0 + canvas: ^2.11.2 peerDependenciesMeta: canvas: optional: true dependencies: - abab: 2.0.6 - cssstyle: 3.0.0 - data-urls: 4.0.0 + cssstyle: 4.0.1 + data-urls: 5.0.0 decimal.js: 10.4.3 - domexception: 4.0.0 form-data: 4.0.0 - html-encoding-sniffer: 3.0.0 - http-proxy-agent: 5.0.0 - https-proxy-agent: 5.0.1 + html-encoding-sniffer: 4.0.0 + http-proxy-agent: 7.0.2 + https-proxy-agent: 7.0.4 is-potential-custom-element-name: 1.0.1 nwsapi: 2.2.7 parse5: 7.1.2 @@ -3543,13 +3576,13 @@ packages: saxes: 6.0.0 symbol-tree: 3.2.4 tough-cookie: 4.1.3 - w3c-xmlserializer: 4.0.0 + w3c-xmlserializer: 5.0.0 webidl-conversions: 7.0.0 - whatwg-encoding: 2.0.0 - whatwg-mimetype: 3.0.0 - whatwg-url: 12.0.1 + whatwg-encoding: 3.1.1 + whatwg-mimetype: 4.0.0 + whatwg-url: 14.0.0 ws: 8.16.0 - xml-name-validator: 4.0.0 + xml-name-validator: 5.0.0 transitivePeerDependencies: - bufferutil - supports-color @@ -4789,9 +4822,9 @@ packages: punycode: 2.3.1 dev: true - /tr46@4.1.1: - resolution: {integrity: sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==} - engines: {node: '>=14'} + /tr46@5.0.0: + resolution: {integrity: sha512-tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g==} + engines: {node: '>=18'} dependencies: punycode: 2.3.1 dev: true @@ -5017,7 +5050,7 @@ packages: optionalDependencies: fsevents: 2.3.3 - /vitest@1.5.0(@vitest/ui@1.5.0)(jsdom@22.1.0): + /vitest@1.5.0(@vitest/ui@1.5.0)(jsdom@24.0.0): resolution: {integrity: sha512-d8UKgR0m2kjdxDWX6911uwxout6GHS0XaGH1cksSIVVG8kRlE7G7aBw7myKQCvDI5dT4j7ZMa+l706BIORMDLw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -5052,7 +5085,7 @@ packages: chai: 4.4.1 debug: 4.3.4(supports-color@8.1.1) execa: 8.0.1 - jsdom: 22.1.0 + jsdom: 24.0.0 local-pkg: 0.5.0 magic-string: 0.30.7 pathe: 1.1.2 @@ -5159,6 +5192,13 @@ packages: xml-name-validator: 4.0.0 dev: true + /w3c-xmlserializer@5.0.0: + resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==} + engines: {node: '>=18'} + dependencies: + xml-name-validator: 5.0.0 + dev: true + /webidl-conversions@3.0.1: resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} dev: false @@ -5175,11 +5215,23 @@ packages: iconv-lite: 0.6.3 dev: true + /whatwg-encoding@3.1.1: + resolution: {integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==} + engines: {node: '>=18'} + dependencies: + iconv-lite: 0.6.3 + dev: true + /whatwg-mimetype@3.0.0: resolution: {integrity: sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==} engines: {node: '>=12'} dev: true + /whatwg-mimetype@4.0.0: + resolution: {integrity: sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==} + engines: {node: '>=18'} + dev: true + /whatwg-url@11.0.0: resolution: {integrity: sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==} engines: {node: '>=12'} @@ -5188,11 +5240,11 @@ packages: webidl-conversions: 7.0.0 dev: true - /whatwg-url@12.0.1: - resolution: {integrity: sha512-Ed/LrqB8EPlGxjS+TrsXcpUond1mhccS3pchLhzSgPCnTimUCKj3IZE75pAs5m6heB2U2TMerKFUXheyHY+VDQ==} - engines: {node: '>=14'} + /whatwg-url@14.0.0: + resolution: {integrity: sha512-1lfMEm2IEr7RIV+f4lUNPOqfFL+pO+Xw3fJSqmjX9AbXcXcYOkCe1P6+9VBZB6n94af16NfZf+sSk0JCBZC9aw==} + engines: {node: '>=18'} dependencies: - tr46: 4.1.1 + tr46: 5.0.0 webidl-conversions: 7.0.0 dev: true @@ -5268,6 +5320,11 @@ packages: engines: {node: '>=12'} dev: true + /xml-name-validator@5.0.0: + resolution: {integrity: sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==} + engines: {node: '>=18'} + dev: true + /xmlchars@2.2.0: resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} dev: true