From e1feeb36d421865f3d8c21d57ad4042328b1b696 Mon Sep 17 00:00:00 2001 From: Cacie Prins Date: Thu, 4 Sep 2025 12:57:29 -0400 Subject: [PATCH 01/12] chore: align on vitest versions across the repo, add project vitest config --- npm/vite-dev-server/package.json | 2 +- npm/webpack-preprocessor/package.json | 8 +- package.json | 2 + packages/driver/package.json | 2 +- packages/stderr-filtering/package.json | 2 +- packages/types/package.json | 2 +- vitest.config.ts | 16 +++ yarn.lock | 141 +++---------------------- 8 files changed, 38 insertions(+), 137 deletions(-) create mode 100644 vitest.config.ts diff --git a/npm/vite-dev-server/package.json b/npm/vite-dev-server/package.json index 4cb09625b33a..7a55ea2db6a5 100644 --- a/npm/vite-dev-server/package.json +++ b/npm/vite-dev-server/package.json @@ -26,7 +26,7 @@ "vite-6": "npm:vite@^6.2.5", "vite-7": "npm:vite@^7.0.0", "vite-plugin-inspect": "0.8.4", - "vitest": "2.1.9" + "vitest": "^3.2.4" }, "peerDependencies": { "cypress": ">=15.0.0" diff --git a/npm/webpack-preprocessor/package.json b/npm/webpack-preprocessor/package.json index f299617cfed9..580d4934a7ba 100644 --- a/npm/webpack-preprocessor/package.json +++ b/npm/webpack-preprocessor/package.json @@ -22,7 +22,8 @@ "bluebird": "3.7.1", "debug": "^4.3.4", "lodash": "^4.17.20", - "semver": "^7.3.2" + "semver": "^7.3.2", + "webpack": "^5.39.0" }, "devDependencies": { "@babel/core": "^7.28.0", @@ -41,8 +42,7 @@ "sinon": "^9.0.0", "sinon-chai": "^3.7.0", "snap-shot-it": "7.9.10", - "ts-node": "^10.9.2", - "webpack": "^5.39.0" + "ts-node": "^10.9.2" }, "peerDependencies": { "@babel/core": "^7.28.0", @@ -76,4 +76,4 @@ } } } -} +} \ No newline at end of file diff --git a/package.json b/package.json index 73b67b1c7b49..ed54e8c55059 100644 --- a/package.json +++ b/package.json @@ -125,6 +125,7 @@ "@typescript-eslint/eslint-plugin": "7.2.0", "@typescript-eslint/parser": "7.2.0", "@urql/introspection": "^0.3.0", + "@vitest/coverage-v8": "^3.2.4", "ascii-table": "0.0.9", "autobarrel": "^1.1.0", "bluebird": "3.5.3", @@ -211,6 +212,7 @@ "tree-kill": "1.2.2", "ts-node": "^10.9.2", "typescript": "5.3.3", + "vitest": "^3.2.4", "yaml": "2.8.0", "yarn-deduplicate": "3.1.0" }, diff --git a/packages/driver/package.json b/packages/driver/package.json index 0d5d91d68081..3f9fee0da383 100644 --- a/packages/driver/package.json +++ b/packages/driver/package.json @@ -93,7 +93,7 @@ "url-parse": "1.5.10", "vanilla-text-mask": "5.1.1", "vite": "^6.3.5", - "vitest": "^2.1.9", + "vitest": "^3.2.4", "webpack": "^5.88.2", "zone.js": "0.15.0" }, diff --git a/packages/stderr-filtering/package.json b/packages/stderr-filtering/package.json index 44fedb313378..af9a1bfa6d6c 100644 --- a/packages/stderr-filtering/package.json +++ b/packages/stderr-filtering/package.json @@ -16,7 +16,7 @@ "devDependencies": { "@packages/eslint-config": "0.0.0-development", "@types/node": "^22.13.10", - "@vitest/coverage-v8": "^3.0.9", + "@vitest/coverage-v8": "^3.2.4", "eslint": "^9.22.0", "rimraf": "^6.0.1", "typescript": "^5.8.2", diff --git a/packages/types/package.json b/packages/types/package.json index 94b450e31876..95b68b15c7cc 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -22,7 +22,7 @@ "express": "4.21.0", "socket.io": "4.0.1", "typescript": "~5.4.5", - "vitest": "2.1.9" + "vitest": "^3.2.4" }, "files": [ "src/*" diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 000000000000..e0b894621b4e --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,16 @@ +import { defineConfig } from 'vitest/config' + +export default defineConfig({ + test: { + projects: [ + '{packages,tools,scripts}/*/vi{test,te}.config.{ts,mjs}', + 'cli/vitest.config.*', + ], + exclude: ['**/node_modules/**', '**/dist/**', 'system-tests/**'], + coverage: { + provider: 'v8', + reporter: ['clover'], + }, + reporters: ['default', 'junit'], + }, +}) diff --git a/yarn.lock b/yarn.lock index ad4ecf69c02a..543cf924e99f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9048,7 +9048,7 @@ dependencies: "@rolldown/pluginutils" "1.0.0-beta.19" -"@vitest/coverage-v8@^3.0.9": +"@vitest/coverage-v8@^3.2.4": version "3.2.4" resolved "https://registry.yarnpkg.com/@vitest/coverage-v8/-/coverage-v8-3.2.4.tgz#a2d8d040288c1956a1c7d0a0e2cdcfc7a3319f13" integrity sha512-EyF9SXU6kS5Ku/U82E259WSnvg6c8KTjppUncuNdm5QHpe17mwREHnjDzozC8x9MZ0xfBUFSaLkRv4TMA75ALQ== @@ -9067,16 +9067,6 @@ test-exclude "^7.0.1" tinyrainbow "^2.0.0" -"@vitest/expect@2.1.9": - version "2.1.9" - resolved "https://registry.yarnpkg.com/@vitest/expect/-/expect-2.1.9.tgz#b566ea20d58ea6578d8dc37040d6c1a47ebe5ff8" - integrity sha512-UJCIkTBenHeKT1TTlKMJWy1laZewsRIzYighyYiJKZreqtdxSos/S1t+ktRMQWu2CKqaarrkeszJx1cgC5tGZw== - dependencies: - "@vitest/spy" "2.1.9" - "@vitest/utils" "2.1.9" - chai "^5.1.2" - tinyrainbow "^1.2.0" - "@vitest/expect@3.2.4": version "3.2.4" resolved "https://registry.yarnpkg.com/@vitest/expect/-/expect-3.2.4.tgz#8362124cd811a5ee11c5768207b9df53d34f2433" @@ -9088,15 +9078,6 @@ chai "^5.2.0" tinyrainbow "^2.0.0" -"@vitest/mocker@2.1.9": - version "2.1.9" - resolved "https://registry.yarnpkg.com/@vitest/mocker/-/mocker-2.1.9.tgz#36243b27351ca8f4d0bbc4ef91594ffd2dc25ef5" - integrity sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg== - dependencies: - "@vitest/spy" "2.1.9" - estree-walker "^3.0.3" - magic-string "^0.30.12" - "@vitest/mocker@3.2.4": version "3.2.4" resolved "https://registry.yarnpkg.com/@vitest/mocker/-/mocker-3.2.4.tgz#4471c4efbd62db0d4fa203e65cc6b058a85cabd3" @@ -9106,13 +9087,6 @@ estree-walker "^3.0.3" magic-string "^0.30.17" -"@vitest/pretty-format@2.1.9", "@vitest/pretty-format@^2.1.9": - version "2.1.9" - resolved "https://registry.yarnpkg.com/@vitest/pretty-format/-/pretty-format-2.1.9.tgz#434ff2f7611689f9ce70cd7d567eceb883653fdf" - integrity sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ== - dependencies: - tinyrainbow "^1.2.0" - "@vitest/pretty-format@3.2.4", "@vitest/pretty-format@^3.2.4": version "3.2.4" resolved "https://registry.yarnpkg.com/@vitest/pretty-format/-/pretty-format-3.2.4.tgz#3c102f79e82b204a26c7a5921bf47d534919d3b4" @@ -9120,14 +9094,6 @@ dependencies: tinyrainbow "^2.0.0" -"@vitest/runner@2.1.9": - version "2.1.9" - resolved "https://registry.yarnpkg.com/@vitest/runner/-/runner-2.1.9.tgz#cc18148d2d797fd1fd5908d1f1851d01459be2f6" - integrity sha512-ZXSSqTFIrzduD63btIfEyOmNcBmQvgOVsPNPe0jYtESiXkhd8u2erDLnMxmGrDCwHCCHE7hxwRDCT3pt0esT4g== - dependencies: - "@vitest/utils" "2.1.9" - pathe "^1.1.2" - "@vitest/runner@3.2.4": version "3.2.4" resolved "https://registry.yarnpkg.com/@vitest/runner/-/runner-3.2.4.tgz#5ce0274f24a971f6500f6fc166d53d8382430766" @@ -9137,15 +9103,6 @@ pathe "^2.0.3" strip-literal "^3.0.0" -"@vitest/snapshot@2.1.9": - version "2.1.9" - resolved "https://registry.yarnpkg.com/@vitest/snapshot/-/snapshot-2.1.9.tgz#24260b93f798afb102e2dcbd7e61c6dfa118df91" - integrity sha512-oBO82rEjsxLNJincVhLhaxxZdEtV0EFHMK5Kmx5sJ6H9L183dHECjiefOAdnqpIgT5eZwT04PoggUnW88vOBNQ== - dependencies: - "@vitest/pretty-format" "2.1.9" - magic-string "^0.30.12" - pathe "^1.1.2" - "@vitest/snapshot@3.2.4": version "3.2.4" resolved "https://registry.yarnpkg.com/@vitest/snapshot/-/snapshot-3.2.4.tgz#40a8bc0346ac0aee923c0eefc2dc005d90bc987c" @@ -9155,13 +9112,6 @@ magic-string "^0.30.17" pathe "^2.0.3" -"@vitest/spy@2.1.9": - version "2.1.9" - resolved "https://registry.yarnpkg.com/@vitest/spy/-/spy-2.1.9.tgz#cb28538c5039d09818b8bfa8edb4043c94727c60" - integrity sha512-E1B35FwzXXTs9FHNK6bDszs7mtydNi5MIfUWpceJ8Xbfb1gBMscAnwLbEu+B44ed6W3XjL9/ehLPHR1fkf1KLQ== - dependencies: - tinyspy "^3.0.2" - "@vitest/spy@3.2.4": version "3.2.4" resolved "https://registry.yarnpkg.com/@vitest/spy/-/spy-3.2.4.tgz#cc18f26f40f3f028da6620046881f4e4518c2599" @@ -9169,15 +9119,6 @@ dependencies: tinyspy "^4.0.3" -"@vitest/utils@2.1.9": - version "2.1.9" - resolved "https://registry.yarnpkg.com/@vitest/utils/-/utils-2.1.9.tgz#4f2486de8a54acf7ecbf2c5c24ad7994a680a6c1" - integrity sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ== - dependencies: - "@vitest/pretty-format" "2.1.9" - loupe "^3.1.2" - tinyrainbow "^1.2.0" - "@vitest/utils@3.2.4": version "3.2.4" resolved "https://registry.yarnpkg.com/@vitest/utils/-/utils-3.2.4.tgz#c0813bc42d99527fb8c5b138c7a88516bca46fea" @@ -12075,7 +12016,7 @@ chai@4.5.0, chai@^4.2.0, chai@^4.3.6: pathval "^1.1.1" type-detect "^4.1.0" -chai@^5.1.2, chai@^5.2.0: +chai@^5.2.0: version "5.2.1" resolved "https://registry.yarnpkg.com/chai/-/chai-5.2.1.tgz#a9502462bdc79cf90b4a0953537a9908aa638b47" integrity sha512-5nFxhUrX0PqtyogoYOA8IPswy5sZFTOsBFl/9bNsmDLgsxYTzSZQJDPppDnZPTQbzSEm0hqGjWPzRemQCYbD6A== @@ -13964,7 +13905,7 @@ debug@3.2.6: dependencies: ms "^2.1.1" -debug@4, debug@4.4.1, debug@^4.0.0, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4, debug@^4.3.5, debug@^4.3.6, debug@^4.3.7, debug@^4.4.0, debug@^4.4.1: +debug@4, debug@4.4.1, debug@^4.0.0, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4, debug@^4.3.5, debug@^4.3.6, debug@^4.4.0, debug@^4.4.1: version "4.4.1" resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.1.tgz#e5a8bc6cbc4c6cd3e64308b0693a3d4fa550189b" integrity sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ== @@ -15366,7 +15307,7 @@ es-module-lexer@^0.9.0: resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.9.3.tgz#6f13db00cc38417137daf74366f535c8eb438f19" integrity sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ== -es-module-lexer@^1.2.1, es-module-lexer@^1.5.4, es-module-lexer@^1.7.0: +es-module-lexer@^1.2.1, es-module-lexer@^1.7.0: version "1.7.0" resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.7.0.tgz#9159601561880a85f2734560a9099b2c31e5372a" integrity sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA== @@ -16278,7 +16219,7 @@ expand-tilde@^2.0.0, expand-tilde@^2.0.2: dependencies: homedir-polyfill "^1.0.1" -expect-type@^1.1.0, expect-type@^1.2.1: +expect-type@^1.2.1: version "1.2.2" resolved "https://registry.yarnpkg.com/expect-type/-/expect-type-1.2.2.tgz#c030a329fb61184126c8447585bc75a7ec6fbff3" integrity sha512-JhFGDVJ7tmDJItKhYgJCGLOWjuK9vPxiXoUFLwLDc99NlmklilbiQJwoctZtt13+xMw91MCk/REan6MWHqDjyA== @@ -21991,7 +21932,7 @@ loupe@^2.3.6: dependencies: get-func-name "^2.0.1" -loupe@^3.1.0, loupe@^3.1.2, loupe@^3.1.4: +loupe@^3.1.0, loupe@^3.1.4: version "3.2.0" resolved "https://registry.yarnpkg.com/loupe/-/loupe-3.2.0.tgz#174073ba8e0a1d0d5e43cc08626ed8a19403c344" integrity sha512-2NCfZcT5VGVNX9mSZIxLRkEAegDGBpuQZBy13desuHeVORmBDyAET4TkJr4SjqQy3A8JDofMN6LpkK8Xcm/dlw== @@ -22089,7 +22030,7 @@ lz-string@^1.5.0: resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.5.0.tgz#c1ab50f77887b712621201ba9fd4e3a6ed099941" integrity sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ== -magic-string@0.30.17, magic-string@^0.30.10, magic-string@^0.30.11, magic-string@^0.30.12, magic-string@^0.30.17: +magic-string@0.30.17, magic-string@^0.30.10, magic-string@^0.30.11, magic-string@^0.30.17: version "0.30.17" resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.17.tgz#450a449673d2460e5bbcfba9a61916a1714c7453" integrity sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA== @@ -25654,7 +25595,7 @@ path-type@^5.0.0: resolved "https://registry.npmjs.org/path-type/-/path-type-5.0.0.tgz#14b01ed7aea7ddf9c7c3f46181d4d04f9c785bb8" integrity sha512-5HviZNaZcfqP95rwpv+1HDgUamezbqdSYTyzjTvwtJSnIH+3vnbmWsItli8OFEndS984VT55M3jduxZbX351gg== -pathe@^1.0.0, pathe@^1.1.2: +pathe@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/pathe/-/pathe-1.1.2.tgz#6c4cb47a945692e48a1ddd6e4094d170516437ec" integrity sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ== @@ -29446,7 +29387,7 @@ statuses@^2.0.1: resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.2.tgz#8f75eecef765b5e1cfcdc080da59409ed424e382" integrity sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw== -std-env@^3.8.0, std-env@^3.9.0: +std-env@^3.9.0: version "3.9.0" resolved "https://registry.yarnpkg.com/std-env/-/std-env-3.9.0.tgz#1a6f7243b339dca4c9fd55e1c7504c77ef23e8f1" integrity sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw== @@ -30537,7 +30478,7 @@ tinycolor2@^1.1.2, tinycolor2@^1.6.0: resolved "https://registry.yarnpkg.com/tinycolor2/-/tinycolor2-1.6.0.tgz#f98007460169b0263b97072c5ae92484ce02d09e" integrity sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw== -tinyexec@^0.3.1, tinyexec@^0.3.2: +tinyexec@^0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/tinyexec/-/tinyexec-0.3.2.tgz#941794e657a85e496577995c6eef66f53f42b3d2" integrity sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA== @@ -30550,26 +30491,16 @@ tinyglobby@^0.2.12, tinyglobby@^0.2.13, tinyglobby@^0.2.14: fdir "^6.4.4" picomatch "^4.0.2" -tinypool@^1.0.1, tinypool@^1.1.1: +tinypool@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/tinypool/-/tinypool-1.1.1.tgz#059f2d042bd37567fbc017d3d426bdd2a2612591" integrity sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg== -tinyrainbow@^1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-1.2.0.tgz#5c57d2fc0fb3d1afd78465c33ca885d04f02abb5" - integrity sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ== - tinyrainbow@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/tinyrainbow/-/tinyrainbow-2.0.0.tgz#9509b2162436315e80e3eee0fcce4474d2444294" integrity sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw== -tinyspy@^3.0.2: - version "3.0.2" - resolved "https://registry.npmjs.org/tinyspy/-/tinyspy-3.0.2.tgz#86dd3cf3d737b15adcf17d7887c84a75201df20a" - integrity sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q== - tinyspy@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/tinyspy/-/tinyspy-4.0.3.tgz#d1d0f0602f4c15f1aae083a34d6d0df3363b1b52" @@ -32025,17 +31956,6 @@ vinyl@^3.0.0: optionalDependencies: fsevents "~2.3.3" -vite-node@2.1.9: - version "2.1.9" - resolved "https://registry.yarnpkg.com/vite-node/-/vite-node-2.1.9.tgz#549710f76a643f1c39ef34bdb5493a944e4f895f" - integrity sha512-AM9aQ/IPrW/6ENLQg3AGY4K1N2TGZdR5e4gu/MmmR2xR3Ll1+dib+nook92g4TV3PXVyeyxdWwtaCAiUL0hMxA== - dependencies: - cac "^6.7.14" - debug "^4.3.7" - es-module-lexer "^1.5.4" - pathe "^1.1.2" - vite "^5.0.0" - vite-node@3.2.4: version "3.2.4" resolved "https://registry.yarnpkg.com/vite-node/-/vite-node-3.2.4.tgz#f3676d94c4af1e76898c162c92728bca65f7bb07" @@ -32131,17 +32051,6 @@ vite@6.3.5, vite@^6.3.5: optionalDependencies: fsevents "~2.3.3" -vite@^5.0.0: - version "5.4.18" - resolved "https://registry.yarnpkg.com/vite/-/vite-5.4.18.tgz#b5af357f9d5ebb2e0c085779b7a37a77f09168a4" - integrity sha512-1oDcnEp3lVyHCuQ2YFelM4Alm2o91xNoMncRm1U7S+JdYfYOvbiGZ3/CxGttrOu2M/KcGz7cRC2DoNUA6urmMA== - dependencies: - esbuild "^0.21.3" - postcss "^8.4.43" - rollup "^4.20.0" - optionalDependencies: - fsevents "~2.3.3" - "vite@^5.0.0 || ^6.0.0 || ^7.0.0-0": version "7.1.2" resolved "https://registry.yarnpkg.com/vite/-/vite-7.1.2.tgz#62ffd8a915977ff387fbe7a731af1a650ec5006e" @@ -32156,33 +32065,7 @@ vite@^5.0.0: optionalDependencies: fsevents "~2.3.3" -vitest@2.1.9, vitest@^2.1.9: - version "2.1.9" - resolved "https://registry.yarnpkg.com/vitest/-/vitest-2.1.9.tgz#7d01ffd07a553a51c87170b5e80fea3da7fb41e7" - integrity sha512-MSmPM9REYqDGBI8439mA4mWhV5sKmDlBKWIYbA3lRb2PTHACE0mgKwA8yQ2xq9vxDTuk4iPrECBAEW2aoFXY0Q== - dependencies: - "@vitest/expect" "2.1.9" - "@vitest/mocker" "2.1.9" - "@vitest/pretty-format" "^2.1.9" - "@vitest/runner" "2.1.9" - "@vitest/snapshot" "2.1.9" - "@vitest/spy" "2.1.9" - "@vitest/utils" "2.1.9" - chai "^5.1.2" - debug "^4.3.7" - expect-type "^1.1.0" - magic-string "^0.30.12" - pathe "^1.1.2" - std-env "^3.8.0" - tinybench "^2.9.0" - tinyexec "^0.3.1" - tinypool "^1.0.1" - tinyrainbow "^1.2.0" - vite "^5.0.0" - vite-node "2.1.9" - why-is-node-running "^2.3.0" - -vitest@3.2.4, vitest@^3.0.9: +vitest@3.2.4, vitest@^3.0.9, vitest@^3.2.4: version "3.2.4" resolved "https://registry.yarnpkg.com/vitest/-/vitest-3.2.4.tgz#0637b903ad79d1539a25bc34c0ed54b5c67702ea" integrity sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A== From 565911fceb2f9e24614cff054292eee902ac80d5 Mon Sep 17 00:00:00 2001 From: Cacie Prins Date: Mon, 8 Sep 2025 15:26:20 -0400 Subject: [PATCH 02/12] Apply suggestion from @cacieprins --- npm/webpack-preprocessor/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/npm/webpack-preprocessor/package.json b/npm/webpack-preprocessor/package.json index 580d4934a7ba..d3abfffadfed 100644 --- a/npm/webpack-preprocessor/package.json +++ b/npm/webpack-preprocessor/package.json @@ -23,7 +23,6 @@ "debug": "^4.3.4", "lodash": "^4.17.20", "semver": "^7.3.2", - "webpack": "^5.39.0" }, "devDependencies": { "@babel/core": "^7.28.0", From 88cf57bc0f453b77f82e2477c9bc9015c9bf20bd Mon Sep 17 00:00:00 2001 From: Cacie Prins Date: Mon, 8 Sep 2025 15:26:27 -0400 Subject: [PATCH 03/12] Apply suggestion from @cacieprins --- npm/webpack-preprocessor/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/npm/webpack-preprocessor/package.json b/npm/webpack-preprocessor/package.json index d3abfffadfed..702d1919d91c 100644 --- a/npm/webpack-preprocessor/package.json +++ b/npm/webpack-preprocessor/package.json @@ -41,7 +41,8 @@ "sinon": "^9.0.0", "sinon-chai": "^3.7.0", "snap-shot-it": "7.9.10", - "ts-node": "^10.9.2" + "ts-node": "^10.9.2", + "webpack": "^5.39.0" }, "peerDependencies": { "@babel/core": "^7.28.0", From f7d1198663acbbcf7dfaf31e4a40f7bc859b73f9 Mon Sep 17 00:00:00 2001 From: Cacie Prins Date: Mon, 8 Sep 2025 15:26:45 -0400 Subject: [PATCH 04/12] Apply suggestion from @cacieprins --- vitest.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vitest.config.ts b/vitest.config.ts index e0b894621b4e..b58807c6bda1 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -3,7 +3,7 @@ import { defineConfig } from 'vitest/config' export default defineConfig({ test: { projects: [ - '{packages,tools,scripts}/*/vi{test,te}.config.{ts,mjs}', + '{packages,tooling,scripts}/*/vitest.config.{ts,mjs}', 'cli/vitest.config.*', ], exclude: ['**/node_modules/**', '**/dist/**', 'system-tests/**'], From d7bce245aa7d4ad576a3ece9fa34b2eda8786e5d Mon Sep 17 00:00:00 2001 From: Cacie Prins Date: Mon, 8 Sep 2025 15:26:53 -0400 Subject: [PATCH 05/12] Apply suggestion from @cacieprins --- npm/webpack-preprocessor/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm/webpack-preprocessor/package.json b/npm/webpack-preprocessor/package.json index 702d1919d91c..e150525eb481 100644 --- a/npm/webpack-preprocessor/package.json +++ b/npm/webpack-preprocessor/package.json @@ -22,7 +22,7 @@ "bluebird": "3.7.1", "debug": "^4.3.4", "lodash": "^4.17.20", - "semver": "^7.3.2", + "semver": "^7.3.2" }, "devDependencies": { "@babel/core": "^7.28.0", From c8b09936238b15efde90b304cef659d523be8f83 Mon Sep 17 00:00:00 2001 From: Cacie Prins Date: Mon, 8 Sep 2025 15:27:20 -0400 Subject: [PATCH 06/12] Update package.json --- npm/webpack-preprocessor/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm/webpack-preprocessor/package.json b/npm/webpack-preprocessor/package.json index e150525eb481..f299617cfed9 100644 --- a/npm/webpack-preprocessor/package.json +++ b/npm/webpack-preprocessor/package.json @@ -76,4 +76,4 @@ } } } -} \ No newline at end of file +} From d33fdcf1564a345c745457445ab793b8fba7509e Mon Sep 17 00:00:00 2001 From: Cacie Prins Date: Tue, 9 Sep 2025 09:42:02 -0400 Subject: [PATCH 07/12] lockfile, align vite with vitest --- packages/stderr-filtering/package.json | 2 +- yarn.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/stderr-filtering/package.json b/packages/stderr-filtering/package.json index af9a1bfa6d6c..1d2dae4605ed 100644 --- a/packages/stderr-filtering/package.json +++ b/packages/stderr-filtering/package.json @@ -20,7 +20,7 @@ "eslint": "^9.22.0", "rimraf": "^6.0.1", "typescript": "^5.8.2", - "vitest": "^3.0.9" + "vitest": "^3.2.4" }, "files": [ "dist" diff --git a/yarn.lock b/yarn.lock index d84f25cf9652..ba6cf234a5f3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -32072,7 +32072,7 @@ vite@6.3.5, vite@^6.3.5: optionalDependencies: fsevents "~2.3.3" -vitest@3.2.4, vitest@^3.0.9, vitest@^3.2.4: +vitest@3.2.4, vitest@^3.2.4: version "3.2.4" resolved "https://registry.yarnpkg.com/vitest/-/vitest-3.2.4.tgz#0637b903ad79d1539a25bc34c0ed54b5c67702ea" integrity sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A== From a8fac8f4aafb52d213d37c0eaa23fa5f6252af91 Mon Sep 17 00:00:00 2001 From: Cacie Prins Date: Tue, 9 Sep 2025 10:46:00 -0400 Subject: [PATCH 08/12] add vitest configs to pkgs that were missing it --- npm/cypress-schematic/eslint.config.ts | 10 +++------- npm/cypress-schematic/package.json | 2 +- npm/cypress-schematic/tsconfig.build.json | 7 +++++++ npm/cypress-schematic/tsconfig.json | 2 +- npm/cypress-schematic/vitest.config.ts | 9 +++++++++ npm/vite-dev-server/vitest.config.ts | 9 +++++++++ packages/types/vitest.config.ts | 9 +++++++++ yarn.lock | 2 +- 8 files changed, 40 insertions(+), 10 deletions(-) create mode 100644 npm/cypress-schematic/tsconfig.build.json create mode 100644 npm/cypress-schematic/vitest.config.ts create mode 100644 npm/vite-dev-server/vitest.config.ts create mode 100644 packages/types/vitest.config.ts diff --git a/npm/cypress-schematic/eslint.config.ts b/npm/cypress-schematic/eslint.config.ts index ea89028f8c0a..517bc5f1567b 100644 --- a/npm/cypress-schematic/eslint.config.ts +++ b/npm/cypress-schematic/eslint.config.ts @@ -1,4 +1,4 @@ -import { baseConfig } from '@packages/eslint-config' +import { baseConfig, cliOverrides } from '@packages/eslint-config' import { globalIgnores } from 'eslint/config' export default [ @@ -6,17 +6,13 @@ export default [ // dist folder, so we need to ignore them globalIgnores(['src/**/*.{js,js.map,d.ts}']), ...baseConfig, + ...cliOverrides, { files: ['**/*.spec.ts', '**/*.component.ts'], languageOptions: { parserOptions: { - projectService: false, + tsconfigRootDir: __dirname, }, }, }, - { - rules: { - 'no-console': 'off', - }, - }, ] diff --git a/npm/cypress-schematic/package.json b/npm/cypress-schematic/package.json index 4956485034be..eaa1266b9e0c 100644 --- a/npm/cypress-schematic/package.json +++ b/npm/cypress-schematic/package.json @@ -25,7 +25,7 @@ "@types/node": "^22.17.1", "eslint": "^9.31.0", "typescript": "~5.4.5", - "vitest": "3.2.4" + "vitest": "^3.2.4" }, "peerDependencies": { "@angular/cli": ">=18.0.0", diff --git a/npm/cypress-schematic/tsconfig.build.json b/npm/cypress-schematic/tsconfig.build.json new file mode 100644 index 000000000000..7c1f0df1e8e6 --- /dev/null +++ b/npm/cypress-schematic/tsconfig.build.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "noEmit": false + }, + "exclude": ["src/**/files-core/**/*", "src/**/files-ct/**/*", "src/**/*.spec.ts"] +} \ No newline at end of file diff --git a/npm/cypress-schematic/tsconfig.json b/npm/cypress-schematic/tsconfig.json index 798d992aa8ec..9a7d2ba6a0b9 100644 --- a/npm/cypress-schematic/tsconfig.json +++ b/npm/cypress-schematic/tsconfig.json @@ -8,6 +8,7 @@ "declaration": true, "module": "commonjs", "moduleResolution": "node", + "noEmit": true, "noEmitOnError": true, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, @@ -27,5 +28,4 @@ "include": [ "src/**/*" ], - "exclude": ["src/**/files-core/**/*", "src/**/files-ct/**/*", "src/**/*.spec.ts"] } diff --git a/npm/cypress-schematic/vitest.config.ts b/npm/cypress-schematic/vitest.config.ts new file mode 100644 index 000000000000..adef43666aa8 --- /dev/null +++ b/npm/cypress-schematic/vitest.config.ts @@ -0,0 +1,9 @@ +import { defineConfig } from 'vitest/config' + +export default defineConfig({ + test: { + include: ['src/**/*.spec.ts'], + globals: true, + environment: 'node', + }, +}) diff --git a/npm/vite-dev-server/vitest.config.ts b/npm/vite-dev-server/vitest.config.ts new file mode 100644 index 000000000000..adef43666aa8 --- /dev/null +++ b/npm/vite-dev-server/vitest.config.ts @@ -0,0 +1,9 @@ +import { defineConfig } from 'vitest/config' + +export default defineConfig({ + test: { + include: ['src/**/*.spec.ts'], + globals: true, + environment: 'node', + }, +}) diff --git a/packages/types/vitest.config.ts b/packages/types/vitest.config.ts new file mode 100644 index 000000000000..adef43666aa8 --- /dev/null +++ b/packages/types/vitest.config.ts @@ -0,0 +1,9 @@ +import { defineConfig } from 'vitest/config' + +export default defineConfig({ + test: { + include: ['src/**/*.spec.ts'], + globals: true, + environment: 'node', + }, +}) diff --git a/yarn.lock b/yarn.lock index ba6cf234a5f3..07bc76df7e1c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -32072,7 +32072,7 @@ vite@6.3.5, vite@^6.3.5: optionalDependencies: fsevents "~2.3.3" -vitest@3.2.4, vitest@^3.2.4: +vitest@^3.2.4: version "3.2.4" resolved "https://registry.yarnpkg.com/vitest/-/vitest-3.2.4.tgz#0637b903ad79d1539a25bc34c0ed54b5c67702ea" integrity sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A== From aeb9bc6d36d04e994cce875da8293e8d505790ed Mon Sep 17 00:00:00 2001 From: Cacie Prins Date: Tue, 9 Sep 2025 10:48:57 -0400 Subject: [PATCH 09/12] update build scripts --- npm/cypress-schematic/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/npm/cypress-schematic/package.json b/npm/cypress-schematic/package.json index eaa1266b9e0c..20901868fd27 100644 --- a/npm/cypress-schematic/package.json +++ b/npm/cypress-schematic/package.json @@ -4,8 +4,8 @@ "description": "Official Cypress schematic for the Angular CLI", "main": "./src", "scripts": { - "build": "tsc -p tsconfig.json", - "build:watch": "tsc -p tsconfig.json --watch", + "build": "tsc -p tsconfig.build.json", + "build:watch": "tsc -p tsconfig.build.json --watch", "lint": "eslint", "test": "vitest run --no-file-parallelism" }, From 281c04bd135a92e15ff6c4fc202ae756a6cd050b Mon Sep 17 00:00:00 2001 From: Cacie Prins Date: Tue, 9 Sep 2025 12:46:20 -0400 Subject: [PATCH 10/12] fix test pattern for vite-dev-server --- npm/vite-dev-server/vitest.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm/vite-dev-server/vitest.config.ts b/npm/vite-dev-server/vitest.config.ts index adef43666aa8..1a9a321880f3 100644 --- a/npm/vite-dev-server/vitest.config.ts +++ b/npm/vite-dev-server/vitest.config.ts @@ -2,7 +2,7 @@ import { defineConfig } from 'vitest/config' export default defineConfig({ test: { - include: ['src/**/*.spec.ts'], + include: ['test/**/*.spec.ts'], globals: true, environment: 'node', }, From 6783c69cb71d304c89a9bae243544fe6f0ac6818 Mon Sep 17 00:00:00 2001 From: Cacie Prins Date: Tue, 9 Sep 2025 13:58:03 -0400 Subject: [PATCH 11/12] correct the path for packages/types tests --- packages/types/vitest.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/types/vitest.config.ts b/packages/types/vitest.config.ts index adef43666aa8..1a9a321880f3 100644 --- a/packages/types/vitest.config.ts +++ b/packages/types/vitest.config.ts @@ -2,7 +2,7 @@ import { defineConfig } from 'vitest/config' export default defineConfig({ test: { - include: ['src/**/*.spec.ts'], + include: ['test/**/*.spec.ts'], globals: true, environment: 'node', }, From 28a2c0b26953f2713779d334b6049c664f4f2800 Mon Sep 17 00:00:00 2001 From: Cacie Prins Date: Wed, 10 Sep 2025 10:53:52 -0400 Subject: [PATCH 12/12] downgrade vite-dev-server to vitest 2 --- npm/vite-dev-server/package.json | 6 +- npm/vite-dev-server/tsconfig.build.json | 32 +++++ npm/vite-dev-server/tsconfig.json | 63 +-------- yarn.lock | 164 +++++++++++++++++++++--- 4 files changed, 182 insertions(+), 83 deletions(-) create mode 100644 npm/vite-dev-server/tsconfig.build.json diff --git a/npm/vite-dev-server/package.json b/npm/vite-dev-server/package.json index 7a55ea2db6a5..6a62644dde07 100644 --- a/npm/vite-dev-server/package.json +++ b/npm/vite-dev-server/package.json @@ -4,8 +4,8 @@ "description": "Launches Vite Dev Server for Component Testing", "main": "dist/index.js", "scripts": { - "build": "tsc || echo 'built, with type errors'", - "check-ts": "tsc --noEmit", + "build": "tsc --project tsconfig.build.json || echo 'built, with type errors'", + "check-ts": "tsc --noEmit --project tsconfig.build.json", "cypress:open": "yarn cypress:run-cypress-in-cypress gulp open --project .", "cypress:run": "yarn cypress:run-cypress-in-cypress node ../../scripts/cypress run --project . --browser chrome", "cypress:run-cypress-in-cypress": "cross-env CYPRESS_INTERNAL_E2E_TESTING_SELF_PARENT_PROJECT=1 HTTP_PROXY_TARGET_FOR_ORIGIN_REQUESTS=http://localhost:4455 CYPRESS_REMOTE_DEBUGGING_PORT=6666 TZ=America/New_York", @@ -26,7 +26,7 @@ "vite-6": "npm:vite@^6.2.5", "vite-7": "npm:vite@^7.0.0", "vite-plugin-inspect": "0.8.4", - "vitest": "^3.2.4" + "vitest": "2.1.9" }, "peerDependencies": { "cypress": ">=15.0.0" diff --git a/npm/vite-dev-server/tsconfig.build.json b/npm/vite-dev-server/tsconfig.build.json new file mode 100644 index 000000000000..016c103a51dd --- /dev/null +++ b/npm/vite-dev-server/tsconfig.build.json @@ -0,0 +1,32 @@ +{ + "compilerOptions": { + "resolveJsonModule": true, + "target": "ES2020", + "module": "node16", + "moduleResolution": "node16", + "lib": [ + "es2015", + "dom" + ], + "declaration": true, + "outDir": "dist", + "importHelpers": true, + "strict": true, + "types": [ + "cypress" + ], + "allowSyntheticDefaultImports": true, + "esModuleInterop": true, + "stripInternal": true, + "ignoreDeprecations": "5.0", + "importsNotUsedAsValues": "error", + "skipLibCheck": true + }, + "include": [ + "src" + ], + "exclude": [ + "node_modules", + "*.js" + ] +} diff --git a/npm/vite-dev-server/tsconfig.json b/npm/vite-dev-server/tsconfig.json index 1ae45286314c..bf054f58d951 100644 --- a/npm/vite-dev-server/tsconfig.json +++ b/npm/vite-dev-server/tsconfig.json @@ -1,61 +1,4 @@ { - "compilerOptions": { - /* Basic Options */ - "resolveJsonModule": true, - "target": "ES2020" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */, - "module": "node16" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */, - "moduleResolution": "node16", - "lib": [ - "es2015", - "dom" - ] /* Specify library files to be included in the compilation: */, - // "checkJs": true, /* Report errors in .js files. */ - // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ - "declaration": true /* Generates corresponding '.d.ts' file. */, - // "sourceMap": true, /* Generates corresponding '.map' file. */ - // "outFile": "./", /* Concatenate and emit output to single file. */ - "outDir": "dist" /* Redirect output structure to the directory. */, - // "rootDir": "src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ - // "removeComments": true, /* Do not emit comments to output. */ - // "noEmit": true, /* Do not emit outputs. */ - "importHelpers": true, /* Import emit helpers from 'tslib'. */ - // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ - // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ - - /* Strict Type-Checking Options */ - "strict": true /* Enable all strict type-checking options. */, - // "noImplicitAny": true, - - /* Module Resolution Options */ - // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ - // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ - // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ - // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ - // "typeRoots": [], /* List of folders to include type definitions from. */ - "types": ["cypress"] /* Type declaration files to be included in compilation. */, - "allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */, - // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ - - /* Source Map Options */ - // "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ - // "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */ - // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ - // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ - - /* Experimental Options */ - // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ - "esModuleInterop": true, - /** Allows us to strip internal types sourced from webpack */ - "stripInternal": true, - "ignoreDeprecations": "5.0", - /* - * TODO: remove importsNotUsedAsValues after typescript 5.5 and up as it will no longer work. If we want the same behavior - * as importsNotUsedAsValues, we need to use "verbatimModuleSyntax", which will require this package to be an ES Module. - */ - "importsNotUsedAsValues": "error", - /* skips checking declaration types. we skip this because we have multiple versions of vite installed as dev dependencies */ - "skipLibCheck": true, - }, - "include": ["src"], - "exclude": ["node_modules", "*.js"] -} + "extends": "./tsconfig.build.json", + "include": ["src", "test"] +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 07bc76df7e1c..c69fd6d69a17 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4892,10 +4892,10 @@ "@jridgewell/gen-mapping" "^0.3.0" "@jridgewell/trace-mapping" "^0.3.9" -"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.4.15", "@jridgewell/sourcemap-codec@^1.5.0": - version "1.5.0" - resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz#3188bcb273a414b0d215fd22a58540b989b9409a" - integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ== +"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.4.15", "@jridgewell/sourcemap-codec@^1.5.0", "@jridgewell/sourcemap-codec@^1.5.5": + version "1.5.5" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz#6912b00d2c631c0d15ce1a7ab57cd657f2a8f8ba" + integrity sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og== "@jridgewell/trace-mapping@0.3.9": version "0.3.9" @@ -9074,6 +9074,16 @@ test-exclude "^7.0.1" tinyrainbow "^2.0.0" +"@vitest/expect@2.1.9": + version "2.1.9" + resolved "https://registry.yarnpkg.com/@vitest/expect/-/expect-2.1.9.tgz#b566ea20d58ea6578d8dc37040d6c1a47ebe5ff8" + integrity sha512-UJCIkTBenHeKT1TTlKMJWy1laZewsRIzYighyYiJKZreqtdxSos/S1t+ktRMQWu2CKqaarrkeszJx1cgC5tGZw== + dependencies: + "@vitest/spy" "2.1.9" + "@vitest/utils" "2.1.9" + chai "^5.1.2" + tinyrainbow "^1.2.0" + "@vitest/expect@3.2.4": version "3.2.4" resolved "https://registry.yarnpkg.com/@vitest/expect/-/expect-3.2.4.tgz#8362124cd811a5ee11c5768207b9df53d34f2433" @@ -9085,6 +9095,15 @@ chai "^5.2.0" tinyrainbow "^2.0.0" +"@vitest/mocker@2.1.9": + version "2.1.9" + resolved "https://registry.yarnpkg.com/@vitest/mocker/-/mocker-2.1.9.tgz#36243b27351ca8f4d0bbc4ef91594ffd2dc25ef5" + integrity sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg== + dependencies: + "@vitest/spy" "2.1.9" + estree-walker "^3.0.3" + magic-string "^0.30.12" + "@vitest/mocker@3.2.4": version "3.2.4" resolved "https://registry.yarnpkg.com/@vitest/mocker/-/mocker-3.2.4.tgz#4471c4efbd62db0d4fa203e65cc6b058a85cabd3" @@ -9094,6 +9113,13 @@ estree-walker "^3.0.3" magic-string "^0.30.17" +"@vitest/pretty-format@2.1.9", "@vitest/pretty-format@^2.1.9": + version "2.1.9" + resolved "https://registry.yarnpkg.com/@vitest/pretty-format/-/pretty-format-2.1.9.tgz#434ff2f7611689f9ce70cd7d567eceb883653fdf" + integrity sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ== + dependencies: + tinyrainbow "^1.2.0" + "@vitest/pretty-format@3.2.4", "@vitest/pretty-format@^3.2.4": version "3.2.4" resolved "https://registry.yarnpkg.com/@vitest/pretty-format/-/pretty-format-3.2.4.tgz#3c102f79e82b204a26c7a5921bf47d534919d3b4" @@ -9101,6 +9127,14 @@ dependencies: tinyrainbow "^2.0.0" +"@vitest/runner@2.1.9": + version "2.1.9" + resolved "https://registry.yarnpkg.com/@vitest/runner/-/runner-2.1.9.tgz#cc18148d2d797fd1fd5908d1f1851d01459be2f6" + integrity sha512-ZXSSqTFIrzduD63btIfEyOmNcBmQvgOVsPNPe0jYtESiXkhd8u2erDLnMxmGrDCwHCCHE7hxwRDCT3pt0esT4g== + dependencies: + "@vitest/utils" "2.1.9" + pathe "^1.1.2" + "@vitest/runner@3.2.4": version "3.2.4" resolved "https://registry.yarnpkg.com/@vitest/runner/-/runner-3.2.4.tgz#5ce0274f24a971f6500f6fc166d53d8382430766" @@ -9110,6 +9144,15 @@ pathe "^2.0.3" strip-literal "^3.0.0" +"@vitest/snapshot@2.1.9": + version "2.1.9" + resolved "https://registry.yarnpkg.com/@vitest/snapshot/-/snapshot-2.1.9.tgz#24260b93f798afb102e2dcbd7e61c6dfa118df91" + integrity sha512-oBO82rEjsxLNJincVhLhaxxZdEtV0EFHMK5Kmx5sJ6H9L183dHECjiefOAdnqpIgT5eZwT04PoggUnW88vOBNQ== + dependencies: + "@vitest/pretty-format" "2.1.9" + magic-string "^0.30.12" + pathe "^1.1.2" + "@vitest/snapshot@3.2.4": version "3.2.4" resolved "https://registry.yarnpkg.com/@vitest/snapshot/-/snapshot-3.2.4.tgz#40a8bc0346ac0aee923c0eefc2dc005d90bc987c" @@ -9119,6 +9162,13 @@ magic-string "^0.30.17" pathe "^2.0.3" +"@vitest/spy@2.1.9": + version "2.1.9" + resolved "https://registry.yarnpkg.com/@vitest/spy/-/spy-2.1.9.tgz#cb28538c5039d09818b8bfa8edb4043c94727c60" + integrity sha512-E1B35FwzXXTs9FHNK6bDszs7mtydNi5MIfUWpceJ8Xbfb1gBMscAnwLbEu+B44ed6W3XjL9/ehLPHR1fkf1KLQ== + dependencies: + tinyspy "^3.0.2" + "@vitest/spy@3.2.4": version "3.2.4" resolved "https://registry.yarnpkg.com/@vitest/spy/-/spy-3.2.4.tgz#cc18f26f40f3f028da6620046881f4e4518c2599" @@ -9126,6 +9176,15 @@ dependencies: tinyspy "^4.0.3" +"@vitest/utils@2.1.9": + version "2.1.9" + resolved "https://registry.yarnpkg.com/@vitest/utils/-/utils-2.1.9.tgz#4f2486de8a54acf7ecbf2c5c24ad7994a680a6c1" + integrity sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ== + dependencies: + "@vitest/pretty-format" "2.1.9" + loupe "^3.1.2" + tinyrainbow "^1.2.0" + "@vitest/utils@3.2.4": version "3.2.4" resolved "https://registry.yarnpkg.com/@vitest/utils/-/utils-3.2.4.tgz#c0813bc42d99527fb8c5b138c7a88516bca46fea" @@ -12023,10 +12082,10 @@ chai@4.5.0, chai@^4.2.0, chai@^4.3.6: pathval "^1.1.1" type-detect "^4.1.0" -chai@^5.2.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/chai/-/chai-5.2.1.tgz#a9502462bdc79cf90b4a0953537a9908aa638b47" - integrity sha512-5nFxhUrX0PqtyogoYOA8IPswy5sZFTOsBFl/9bNsmDLgsxYTzSZQJDPppDnZPTQbzSEm0hqGjWPzRemQCYbD6A== +chai@^5.1.2, chai@^5.2.0: + version "5.3.3" + resolved "https://registry.yarnpkg.com/chai/-/chai-5.3.3.tgz#dd3da955e270916a4bd3f625f4b919996ada7e06" + integrity sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw== dependencies: assertion-error "^2.0.1" check-error "^2.1.1" @@ -13912,7 +13971,7 @@ debug@3.2.6: dependencies: ms "^2.1.1" -debug@4, debug@4.4.1, debug@^4.0.0, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4, debug@^4.3.5, debug@^4.3.6, debug@^4.4.0, debug@^4.4.1: +debug@4, debug@4.4.1, debug@^4.0.0, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4, debug@^4.3.5, debug@^4.3.6, debug@^4.3.7, debug@^4.4.0, debug@^4.4.1: version "4.4.1" resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.1.tgz#e5a8bc6cbc4c6cd3e64308b0693a3d4fa550189b" integrity sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ== @@ -15314,7 +15373,7 @@ es-module-lexer@^0.9.0: resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.9.3.tgz#6f13db00cc38417137daf74366f535c8eb438f19" integrity sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ== -es-module-lexer@^1.2.1, es-module-lexer@^1.7.0: +es-module-lexer@^1.2.1, es-module-lexer@^1.5.4, es-module-lexer@^1.7.0: version "1.7.0" resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.7.0.tgz#9159601561880a85f2734560a9099b2c31e5372a" integrity sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA== @@ -16226,7 +16285,7 @@ expand-tilde@^2.0.0, expand-tilde@^2.0.2: dependencies: homedir-polyfill "^1.0.1" -expect-type@^1.2.1: +expect-type@^1.1.0, expect-type@^1.2.1: version "1.2.2" resolved "https://registry.yarnpkg.com/expect-type/-/expect-type-1.2.2.tgz#c030a329fb61184126c8447585bc75a7ec6fbff3" integrity sha512-JhFGDVJ7tmDJItKhYgJCGLOWjuK9vPxiXoUFLwLDc99NlmklilbiQJwoctZtt13+xMw91MCk/REan6MWHqDjyA== @@ -21939,10 +21998,10 @@ loupe@^2.3.6: dependencies: get-func-name "^2.0.1" -loupe@^3.1.0, loupe@^3.1.4: - version "3.2.0" - resolved "https://registry.yarnpkg.com/loupe/-/loupe-3.2.0.tgz#174073ba8e0a1d0d5e43cc08626ed8a19403c344" - integrity sha512-2NCfZcT5VGVNX9mSZIxLRkEAegDGBpuQZBy13desuHeVORmBDyAET4TkJr4SjqQy3A8JDofMN6LpkK8Xcm/dlw== +loupe@^3.1.0, loupe@^3.1.2, loupe@^3.1.4: + version "3.2.1" + resolved "https://registry.yarnpkg.com/loupe/-/loupe-3.2.1.tgz#0095cf56dc5b7a9a7c08ff5b1a8796ec8ad17e76" + integrity sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ== lower-case-first@^1.0.0: version "1.0.2" @@ -22037,7 +22096,7 @@ lz-string@^1.5.0: resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.5.0.tgz#c1ab50f77887b712621201ba9fd4e3a6ed099941" integrity sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ== -magic-string@0.30.17, magic-string@^0.30.10, magic-string@^0.30.11, magic-string@^0.30.17: +magic-string@0.30.17: version "0.30.17" resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.17.tgz#450a449673d2460e5bbcfba9a61916a1714c7453" integrity sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA== @@ -22058,6 +22117,13 @@ magic-string@^0.26.7: dependencies: sourcemap-codec "^1.4.8" +magic-string@^0.30.10, magic-string@^0.30.11, magic-string@^0.30.12, magic-string@^0.30.17: + version "0.30.19" + resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.19.tgz#cebe9f104e565602e5d2098c5f2e79a77cc86da9" + integrity sha512-2N21sPY9Ws53PZvsEpVtNuSW+ScYbQdp4b9qUaL+9QkHUrGFKo56Lg9Emg5s9V/qrtNBmiR01sYhUOwu3H+VOw== + dependencies: + "@jridgewell/sourcemap-codec" "^1.5.5" + magicast@^0.3.5: version "0.3.5" resolved "https://registry.yarnpkg.com/magicast/-/magicast-0.3.5.tgz#8301c3c7d66704a0771eb1bad74274f0ec036739" @@ -25602,7 +25668,7 @@ path-type@^5.0.0: resolved "https://registry.npmjs.org/path-type/-/path-type-5.0.0.tgz#14b01ed7aea7ddf9c7c3f46181d4d04f9c785bb8" integrity sha512-5HviZNaZcfqP95rwpv+1HDgUamezbqdSYTyzjTvwtJSnIH+3vnbmWsItli8OFEndS984VT55M3jduxZbX351gg== -pathe@^1.0.0: +pathe@^1.0.0, pathe@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/pathe/-/pathe-1.1.2.tgz#6c4cb47a945692e48a1ddd6e4094d170516437ec" integrity sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ== @@ -29394,7 +29460,7 @@ statuses@^2.0.1: resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.2.tgz#8f75eecef765b5e1cfcdc080da59409ed424e382" integrity sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw== -std-env@^3.9.0: +std-env@^3.8.0, std-env@^3.9.0: version "3.9.0" resolved "https://registry.yarnpkg.com/std-env/-/std-env-3.9.0.tgz#1a6f7243b339dca4c9fd55e1c7504c77ef23e8f1" integrity sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw== @@ -30485,7 +30551,7 @@ tinycolor2@^1.1.2, tinycolor2@^1.6.0: resolved "https://registry.yarnpkg.com/tinycolor2/-/tinycolor2-1.6.0.tgz#f98007460169b0263b97072c5ae92484ce02d09e" integrity sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw== -tinyexec@^0.3.2: +tinyexec@^0.3.1, tinyexec@^0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/tinyexec/-/tinyexec-0.3.2.tgz#941794e657a85e496577995c6eef66f53f42b3d2" integrity sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA== @@ -30498,16 +30564,26 @@ tinyglobby@^0.2.12, tinyglobby@^0.2.13, tinyglobby@^0.2.14: fdir "^6.4.4" picomatch "^4.0.2" -tinypool@^1.1.1: +tinypool@^1.0.1, tinypool@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/tinypool/-/tinypool-1.1.1.tgz#059f2d042bd37567fbc017d3d426bdd2a2612591" integrity sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg== +tinyrainbow@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/tinyrainbow/-/tinyrainbow-1.2.0.tgz#5c57d2fc0fb3d1afd78465c33ca885d04f02abb5" + integrity sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ== + tinyrainbow@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/tinyrainbow/-/tinyrainbow-2.0.0.tgz#9509b2162436315e80e3eee0fcce4474d2444294" integrity sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw== +tinyspy@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/tinyspy/-/tinyspy-3.0.2.tgz#86dd3cf3d737b15adcf17d7887c84a75201df20a" + integrity sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q== + tinyspy@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/tinyspy/-/tinyspy-4.0.3.tgz#d1d0f0602f4c15f1aae083a34d6d0df3363b1b52" @@ -31963,6 +32039,17 @@ vinyl@^3.0.0: optionalDependencies: fsevents "~2.3.3" +vite-node@2.1.9: + version "2.1.9" + resolved "https://registry.yarnpkg.com/vite-node/-/vite-node-2.1.9.tgz#549710f76a643f1c39ef34bdb5493a944e4f895f" + integrity sha512-AM9aQ/IPrW/6ENLQg3AGY4K1N2TGZdR5e4gu/MmmR2xR3Ll1+dib+nook92g4TV3PXVyeyxdWwtaCAiUL0hMxA== + dependencies: + cac "^6.7.14" + debug "^4.3.7" + es-module-lexer "^1.5.4" + pathe "^1.1.2" + vite "^5.0.0" + vite-node@3.2.4: version "3.2.4" resolved "https://registry.yarnpkg.com/vite-node/-/vite-node-3.2.4.tgz#f3676d94c4af1e76898c162c92728bca65f7bb07" @@ -32058,6 +32145,17 @@ vite@6.3.5, vite@^6.3.5: optionalDependencies: fsevents "~2.3.3" +vite@^5.0.0: + version "5.4.20" + resolved "https://registry.yarnpkg.com/vite/-/vite-5.4.20.tgz#3267a5e03f21212f44edfd72758138e8fcecd76a" + integrity sha512-j3lYzGC3P+B5Yfy/pfKNgVEg4+UtcIJcVRt2cDjIOmhLourAqPqf8P7acgxeiSgUB7E3p2P8/3gNIgDLpwzs4g== + dependencies: + esbuild "^0.21.3" + postcss "^8.4.43" + rollup "^4.20.0" + optionalDependencies: + fsevents "~2.3.3" + "vite@^5.0.0 || ^6.0.0 || ^7.0.0-0": version "7.1.2" resolved "https://registry.yarnpkg.com/vite/-/vite-7.1.2.tgz#62ffd8a915977ff387fbe7a731af1a650ec5006e" @@ -32072,6 +32170,32 @@ vite@6.3.5, vite@^6.3.5: optionalDependencies: fsevents "~2.3.3" +vitest@2.1.9: + version "2.1.9" + resolved "https://registry.yarnpkg.com/vitest/-/vitest-2.1.9.tgz#7d01ffd07a553a51c87170b5e80fea3da7fb41e7" + integrity sha512-MSmPM9REYqDGBI8439mA4mWhV5sKmDlBKWIYbA3lRb2PTHACE0mgKwA8yQ2xq9vxDTuk4iPrECBAEW2aoFXY0Q== + dependencies: + "@vitest/expect" "2.1.9" + "@vitest/mocker" "2.1.9" + "@vitest/pretty-format" "^2.1.9" + "@vitest/runner" "2.1.9" + "@vitest/snapshot" "2.1.9" + "@vitest/spy" "2.1.9" + "@vitest/utils" "2.1.9" + chai "^5.1.2" + debug "^4.3.7" + expect-type "^1.1.0" + magic-string "^0.30.12" + pathe "^1.1.2" + std-env "^3.8.0" + tinybench "^2.9.0" + tinyexec "^0.3.1" + tinypool "^1.0.1" + tinyrainbow "^1.2.0" + vite "^5.0.0" + vite-node "2.1.9" + why-is-node-running "^2.3.0" + vitest@^3.2.4: version "3.2.4" resolved "https://registry.yarnpkg.com/vitest/-/vitest-3.2.4.tgz#0637b903ad79d1539a25bc34c0ed54b5c67702ea"