diff --git a/examples/with-vitest/apps/docs/package.json b/examples/with-vitest/apps/docs/package.json index 51cb51e37624a..8eba993bbf01b 100644 --- a/examples/with-vitest/apps/docs/package.json +++ b/examples/with-vitest/apps/docs/package.json @@ -21,12 +21,12 @@ "@repo/eslint-config": "workspace:*", "@repo/typescript-config": "workspace:*", "@repo/vitest-config": "workspace:*", - "@vitest/coverage-istanbul": "^3.0.7", "@types/node": "^22", "@types/react": "19.0.8", "@types/react-dom": "19.0.3", + "@vitest/coverage-istanbul": "^3.2.4", "eslint": "^9.21.0", "typescript": "5.7.3", - "vitest": "^3.0.7" + "vitest": "^3.2.4" } } diff --git a/examples/with-vitest/apps/web/package.json b/examples/with-vitest/apps/web/package.json index f8cd11b36f31c..9884597bb7393 100644 --- a/examples/with-vitest/apps/web/package.json +++ b/examples/with-vitest/apps/web/package.json @@ -24,9 +24,9 @@ "@types/node": "^22", "@types/react": "19.0.8", "@types/react-dom": "19.0.3", - "@vitest/coverage-istanbul": "^3.0.7", + "@vitest/coverage-istanbul": "^3.2.4", "eslint": "^9.21.0", "typescript": "5.7.3", - "vitest": "^3.0.7" + "vitest": "^3.2.4" } } diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index 0354441262265..a36f112073950 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "prettier": "^3.5.0", "turbo": "^2.5.0", "typescript": "5.7.3", - "vitest": "^3.0.7" + "vitest": "^3.2.4" }, "packageManager": "pnpm@9.0.0", "engines": { diff --git a/examples/with-vitest/packages/eslint-config/package.json b/examples/with-vitest/packages/eslint-config/package.json index c795e9abdc42d..2c27f1317dfd5 100644 --- a/examples/with-vitest/packages/eslint-config/package.json +++ b/examples/with-vitest/packages/eslint-config/package.json @@ -20,6 +20,6 @@ "globals": "^15.15.0", "typescript": "^5.7.3", "typescript-eslint": "^8.24.0", - "vitest": "^3.0.7" + "vitest": "^3.2.4" } } diff --git a/examples/with-vitest/packages/math/package.json b/examples/with-vitest/packages/math/package.json index 34364ae644798..f054a315e0e39 100644 --- a/examples/with-vitest/packages/math/package.json +++ b/examples/with-vitest/packages/math/package.json @@ -19,8 +19,8 @@ "devDependencies": { "@repo/typescript-config": "workspace:*", "@repo/vitest-config": "workspace:*", - "@vitest/coverage-istanbul": "^3.0.7", + "@vitest/coverage-istanbul": "^3.2.4", "typescript": "latest", - "vitest": "^3.0.7" + "vitest": "^3.2.4" } } diff --git a/examples/with-vitest/packages/typescript-config/package.json b/examples/with-vitest/packages/typescript-config/package.json index 812c78cb664f1..cc61da7b80c2a 100644 --- a/examples/with-vitest/packages/typescript-config/package.json +++ b/examples/with-vitest/packages/typescript-config/package.json @@ -7,6 +7,6 @@ "access": "public" }, "devDependencies": { - "vitest": "^3.0.7" + "vitest": "^3.2.4" } } diff --git a/examples/with-vitest/packages/vitest-config/package.json b/examples/with-vitest/packages/vitest-config/package.json index 6f4d3e0ebea14..dcc66c1f88968 100644 --- a/examples/with-vitest/packages/vitest-config/package.json +++ b/examples/with-vitest/packages/vitest-config/package.json @@ -17,11 +17,11 @@ "view-report": "open coverage/report/index.html" }, "dependencies": { - "vitest": "^3.0.7" + "vitest": "^3.2.4" }, "devDependencies": { "@repo/typescript-config": "workspace:*", - "@vitest/coverage-istanbul": "^3.0.7", + "@vitest/coverage-istanbul": "^3.2.4", "@vitest/ui": "3.0.7", "glob": "^11.0.1", "jsdom": "^26.0.0", diff --git a/examples/with-vitest/pnpm-lock.yaml b/examples/with-vitest/pnpm-lock.yaml index fdd23427cb90d..ee77c21fe36dd 100644 --- a/examples/with-vitest/pnpm-lock.yaml +++ b/examples/with-vitest/pnpm-lock.yaml @@ -8,6 +8,9 @@ importers: .: devDependencies: + '@repo/vitest-config': + specifier: workspace:* + version: link:packages/vitest-config prettier: specifier: ^3.5.0 version: 3.5.0 @@ -17,6 +20,9 @@ importers: typescript: specifier: 5.7.3 version: 5.7.3 + vitest: + specifier: ^3.2.4 + version: 3.2.4(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0) apps/docs: dependencies: @@ -52,8 +58,8 @@ importers: specifier: 19.0.3 version: 19.0.3(@types/react@19.0.8) '@vitest/coverage-istanbul': - specifier: ^3.0.7 - version: 3.0.7(vitest@3.0.7(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0)) + specifier: ^3.2.4 + version: 3.2.4(vitest@3.2.4(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0)) eslint: specifier: ^9.21.0 version: 9.21.0 @@ -61,8 +67,8 @@ importers: specifier: 5.7.3 version: 5.7.3 vitest: - specifier: ^3.0.7 - version: 3.0.7(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0) + specifier: ^3.2.4 + version: 3.2.4(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0) apps/web: dependencies: @@ -98,8 +104,8 @@ importers: specifier: 19.0.3 version: 19.0.3(@types/react@19.0.8) '@vitest/coverage-istanbul': - specifier: ^3.0.7 - version: 3.0.7(vitest@3.0.7(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0)) + specifier: ^3.2.4 + version: 3.2.4(vitest@3.2.4(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0)) eslint: specifier: ^9.21.0 version: 9.21.0 @@ -107,8 +113,8 @@ importers: specifier: 5.7.3 version: 5.7.3 vitest: - specifier: ^3.0.7 - version: 3.0.7(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0) + specifier: ^3.2.4 + version: 3.2.4(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0) packages/eslint-config: devDependencies: @@ -146,8 +152,8 @@ importers: specifier: ^8.24.0 version: 8.24.0(eslint@9.21.0)(typescript@5.7.3) vitest: - specifier: ^3.0.7 - version: 3.0.7(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0) + specifier: ^3.2.4 + version: 3.2.4(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0) packages/math: devDependencies: @@ -158,20 +164,20 @@ importers: specifier: workspace:* version: link:../vitest-config '@vitest/coverage-istanbul': - specifier: ^3.0.7 - version: 3.0.7(vitest@3.0.7(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0)) + specifier: ^3.2.4 + version: 3.2.4(vitest@3.2.4(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0)) typescript: specifier: latest version: 5.8.2 vitest: - specifier: ^3.0.7 - version: 3.0.7(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0) + specifier: ^3.2.4 + version: 3.2.4(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0) packages/typescript-config: devDependencies: vitest: - specifier: ^3.0.7 - version: 3.0.7(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0) + specifier: ^3.2.4 + version: 3.2.4(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0) packages/ui: dependencies: @@ -208,16 +214,20 @@ importers: version: 5.7.3 packages/vitest-config: + dependencies: + vitest: + specifier: ^3.2.4 + version: 3.2.4(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0) devDependencies: '@repo/typescript-config': specifier: workspace:* version: link:../typescript-config '@vitest/coverage-istanbul': - specifier: ^3.0.7 - version: 3.0.7(vitest@3.0.7(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0)) + specifier: ^3.2.4 + version: 3.2.4(vitest@3.2.4(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0)) '@vitest/ui': specifier: 3.0.7 - version: 3.0.7(vitest@3.0.7) + version: 3.0.7(vitest@3.2.4) glob: specifier: ^11.0.1 version: 11.0.1 @@ -227,9 +237,9 @@ importers: nyc: specifier: ^17.1.0 version: 17.1.0 - vitest: - specifier: ^3.0.7 - version: 3.0.7(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0) + typescript: + specifier: latest + version: 5.8.3 packages: @@ -879,6 +889,12 @@ packages: '@turbo/workspaces@2.4.0': resolution: {integrity: sha512-WHKtnPoT9fVqS0oWG9P3JeQvNCloz2oZWEsEn2LbGyMSU89isCJ6dKlHxqjfGSNdm8+b1fwT5JuE1AW6uYp1TQ==} + '@types/chai@5.2.2': + resolution: {integrity: sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==} + + '@types/deep-eql@4.0.2': + resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} + '@types/estree@1.0.6': resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==} @@ -958,19 +974,19 @@ packages: resolution: {integrity: sha512-kArLq83QxGLbuHrTMoOEWO+l2MwsNS2TGISEdx8xgqpkbytB07XmlQyQdNDrCc1ecSqx0cnmhGvpX+VBwqqSkg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@vitest/coverage-istanbul@3.0.7': - resolution: {integrity: sha512-hkd7rlfnqQJFlg6IPv9aFNaxJNkWLasdfaMJR3MBsBkxddSYy5ax9sW6Vv1/3tmmyT9m/b0lHDNknybKJ33cXw==} + '@vitest/coverage-istanbul@3.2.4': + resolution: {integrity: sha512-IDlpuFJiWU9rhcKLkpzj8mFu/lpe64gVgnV15ZOrYx1iFzxxrxCzbExiUEKtwwXRvEiEMUS6iZeYgnMxgbqbxQ==} peerDependencies: - vitest: 3.0.7 + vitest: 3.2.4 - '@vitest/expect@3.0.7': - resolution: {integrity: sha512-QP25f+YJhzPfHrHfYHtvRn+uvkCFCqFtW9CktfBxmB+25QqWsx7VB2As6f4GmwllHLDhXNHvqedwhvMmSnNmjw==} + '@vitest/expect@3.2.4': + resolution: {integrity: sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==} - '@vitest/mocker@3.0.7': - resolution: {integrity: sha512-qui+3BLz9Eonx4EAuR/i+QlCX6AUZ35taDQgwGkK/Tw6/WgwodSrjN1X2xf69IA/643ZX5zNKIn2svvtZDrs4w==} + '@vitest/mocker@3.2.4': + resolution: {integrity: sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==} peerDependencies: msw: ^2.4.9 - vite: ^5.0.0 || ^6.0.0 + vite: ^5.0.0 || ^6.0.0 || ^7.0.0-0 peerDependenciesMeta: msw: optional: true @@ -980,14 +996,17 @@ packages: '@vitest/pretty-format@3.0.7': resolution: {integrity: sha512-CiRY0BViD/V8uwuEzz9Yapyao+M9M008/9oMOSQydwbwb+CMokEq3XVaF3XK/VWaOK0Jm9z7ENhybg70Gtxsmg==} - '@vitest/runner@3.0.7': - resolution: {integrity: sha512-WeEl38Z0S2ZcuRTeyYqaZtm4e26tq6ZFqh5y8YD9YxfWuu0OFiGFUbnxNynwLjNRHPsXyee2M9tV7YxOTPZl2g==} + '@vitest/pretty-format@3.2.4': + resolution: {integrity: sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==} + + '@vitest/runner@3.2.4': + resolution: {integrity: sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==} - '@vitest/snapshot@3.0.7': - resolution: {integrity: sha512-eqTUryJWQN0Rtf5yqCGTQWsCFOQe4eNz5Twsu21xYEcnFJtMU5XvmG0vgebhdLlrHQTSq5p8vWHJIeJQV8ovsA==} + '@vitest/snapshot@3.2.4': + resolution: {integrity: sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==} - '@vitest/spy@3.0.7': - resolution: {integrity: sha512-4T4WcsibB0B6hrKdAZTM37ekuyFZt2cGbEGd2+L0P8ov15J1/HUsUaqkXEQPNAWr4BtPPe1gI+FYfMHhEKfR8w==} + '@vitest/spy@3.2.4': + resolution: {integrity: sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==} '@vitest/ui@3.0.7': resolution: {integrity: sha512-bogkkSaVdSTRj02TfypjrqrLCeEc/tA5V4gAVM843Rp5JtIub3xaij+qjsSnS6CseLQJUSdDCFaFqPMmymRJKQ==} @@ -997,6 +1016,9 @@ packages: '@vitest/utils@3.0.7': resolution: {integrity: sha512-xePVpCRfooFX3rANQjwoditoXgWb1MaFbzmGuPP59MK6i13mrnDw/yEIyJudLeW6/38mCNcwCiJIGmpDPibAIg==} + '@vitest/utils@3.2.4': + resolution: {integrity: sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==} + acorn-jsx@5.3.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: @@ -1322,6 +1344,15 @@ packages: supports-color: optional: true + debug@4.4.1: + resolution: {integrity: sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + decamelize@1.2.0: resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==} engines: {node: '>=0.10.0'} @@ -1426,8 +1457,8 @@ packages: resolution: {integrity: sha512-uDn+FE1yrDzyC0pCo961B2IHbdM8y/ACZsKD4dG6WqrjV53BADjwa7D+1aom2rsNVfLyDgU/eigvlJGJ08OQ4w==} engines: {node: '>= 0.4'} - es-module-lexer@1.6.0: - resolution: {integrity: sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ==} + es-module-lexer@1.7.0: + resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==} es-object-atoms@1.1.1: resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==} @@ -1549,8 +1580,8 @@ packages: resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} engines: {node: '>=10'} - expect-type@1.2.0: - resolution: {integrity: sha512-80F22aiJ3GLyVnS/B3HzgR6RelZVumzj9jkL0Rhz4h0xYbNW9PjlQz5h3J/SShErbXBc295vseR4/MIbVmUbeA==} + expect-type@1.2.2: + resolution: {integrity: sha512-JhFGDVJ7tmDJItKhYgJCGLOWjuK9vPxiXoUFLwLDc99NlmklilbiQJwoctZtt13+xMw91MCk/REan6MWHqDjyA==} engines: {node: '>=12.0.0'} external-editor@3.1.0: @@ -1585,6 +1616,14 @@ packages: picomatch: optional: true + fdir@6.4.6: + resolution: {integrity: sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + fflate@0.8.2: resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==} @@ -2054,6 +2093,9 @@ packages: js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + js-tokens@9.0.1: + resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==} + js-yaml@3.14.1: resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} hasBin: true @@ -2140,6 +2182,9 @@ packages: loupe@3.1.3: resolution: {integrity: sha512-kkIp7XSkP78ZxJEsSxW3712C6teJVoeHHwgo9zJ380de7IYyJ2ISlxojcH2pC5OFLewESmnRi/+XCDIEEVyoug==} + loupe@3.1.4: + resolution: {integrity: sha512-wJzkKwJrheKtknCOKNEtDK4iqg/MxmZheEMtSTYvnzRdEYaZzmgH976nenp8WdJRdx5Vc1X/9MO0Oszl6ezeXg==} + lower-case-first@1.0.2: resolution: {integrity: sha512-UuxaYakO7XeONbKrZf5FEgkantPf5DUqDayzP5VXZrtRPdH86s4kN47I8B3TW10S4QKiE3ziHNf3kRN//okHjA==} @@ -2738,8 +2783,8 @@ packages: stackback@0.0.2: resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} - std-env@3.8.0: - resolution: {integrity: sha512-Bc3YwwCB+OzldMxOXJIIvC6cPRWr/LxOp48CdQTOkPyk/t4JWWJbrilwBd7RJzKV8QW7tJkcgAmeuLLJugl5/w==} + std-env@3.9.0: + resolution: {integrity: sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==} streamsearch@1.1.0: resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==} @@ -2799,6 +2844,9 @@ packages: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} + strip-literal@3.0.0: + resolution: {integrity: sha512-TcccoMhJOM3OebGhSBEmp3UZ2SfDMZUEBdRA/9ynfLi8yYajyWX3JiXArcJt4Umh4vISpspkQIY8ZZoCqjbviA==} + styled-jsx@5.1.6: resolution: {integrity: sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==} engines: {node: '>= 12.0.0'} @@ -2854,19 +2902,23 @@ packages: resolution: {integrity: sha512-qkf4trmKSIiMTs/E63cxH+ojC2unam7rJ0WrauAzpT3ECNTxGRMlaXxVbfxMUC/w0LaYk6jQ4y/nGR9uBO3tww==} engines: {node: '>=12.0.0'} + tinyglobby@0.2.14: + resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==} + engines: {node: '>=12.0.0'} + tinygradient@1.1.5: resolution: {integrity: sha512-8nIfc2vgQ4TeLnk2lFj4tRLvvJwEfQuabdsmvDdQPT0xlk9TaNtpGd6nNRxXoK6vQhN6RSzj+Cnp5tTQmpxmbw==} - tinypool@1.0.2: - resolution: {integrity: sha512-al6n+QEANGFOMf/dmUMsuS5/r9B06uwlyNjZZql/zv8J7ybHCgoihBNORZCY2mzUuAnomQa2JdhyHKzZxPCrFA==} + tinypool@1.1.1: + resolution: {integrity: sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==} engines: {node: ^18.0.0 || >=20.0.0} tinyrainbow@2.0.0: resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==} engines: {node: '>=14.0.0'} - tinyspy@3.0.2: - resolution: {integrity: sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==} + tinyspy@4.0.3: + resolution: {integrity: sha512-t2T/WLB2WRgZ9EpE4jgPJ9w+i66UZfDc8wHh0xrwiRNN+UwH98GIJkTeZqX9rg0i0ptwzqW+uYeIF0T4F8LR7A==} engines: {node: '>=14.0.0'} title-case@2.1.1: @@ -3006,6 +3058,11 @@ packages: engines: {node: '>=14.17'} hasBin: true + typescript@5.8.3: + resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==} + engines: {node: '>=14.17'} + hasBin: true + uglify-js@3.19.3: resolution: {integrity: sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==} engines: {node: '>=0.8.0'} @@ -3053,8 +3110,8 @@ packages: resolution: {integrity: sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} - vite-node@3.0.7: - resolution: {integrity: sha512-2fX0QwX4GkkkpULXdT1Pf4q0tC1i1lFOyseKoonavXUNlQ77KpW2XqBGGNIm/J4Ows4KxgGJzDguYVPKwG/n5A==} + vite-node@3.2.4: + resolution: {integrity: sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==} engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} hasBin: true @@ -3098,16 +3155,16 @@ packages: yaml: optional: true - vitest@3.0.7: - resolution: {integrity: sha512-IP7gPK3LS3Fvn44x30X1dM9vtawm0aesAa2yBIZ9vQf+qB69NXC5776+Qmcr7ohUXIQuLhk7xQR0aSUIDPqavg==} + vitest@3.2.4: + resolution: {integrity: sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==} engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' '@types/debug': ^4.1.12 '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 - '@vitest/browser': 3.0.7 - '@vitest/ui': 3.0.7 + '@vitest/browser': 3.2.4 + '@vitest/ui': 3.2.4 happy-dom: '*' jsdom: '*' peerDependenciesMeta: @@ -3279,7 +3336,7 @@ snapshots: '@babel/traverse': 7.26.9 '@babel/types': 7.26.9 convert-source-map: 2.0.0 - debug: 4.4.0 + debug: 4.4.1 gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -3351,7 +3408,7 @@ snapshots: '@babel/parser': 7.26.9 '@babel/template': 7.26.9 '@babel/types': 7.26.9 - debug: 4.4.0 + debug: 4.4.1 globals: 11.12.0 transitivePeerDependencies: - supports-color @@ -3790,6 +3847,12 @@ snapshots: semver: 7.6.2 update-check: 1.5.4 + '@types/chai@5.2.2': + dependencies: + '@types/deep-eql': 4.0.2 + + '@types/deep-eql@4.0.2': {} + '@types/estree@1.0.6': {} '@types/glob@7.2.0': @@ -3901,10 +3964,10 @@ snapshots: '@typescript-eslint/types': 8.24.0 eslint-visitor-keys: 4.2.0 - '@vitest/coverage-istanbul@3.0.7(vitest@3.0.7(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0))': + '@vitest/coverage-istanbul@3.2.4(vitest@3.2.4(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0))': dependencies: '@istanbuljs/schema': 0.1.3 - debug: 4.4.0 + debug: 4.4.1 istanbul-lib-coverage: 3.2.2 istanbul-lib-instrument: 6.0.3 istanbul-lib-report: 3.0.1 @@ -3913,20 +3976,21 @@ snapshots: magicast: 0.3.5 test-exclude: 7.0.1 tinyrainbow: 2.0.0 - vitest: 3.0.7(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0) + vitest: 3.2.4(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0) transitivePeerDependencies: - supports-color - '@vitest/expect@3.0.7': + '@vitest/expect@3.2.4': dependencies: - '@vitest/spy': 3.0.7 - '@vitest/utils': 3.0.7 + '@types/chai': 5.2.2 + '@vitest/spy': 3.2.4 + '@vitest/utils': 3.2.4 chai: 5.2.0 tinyrainbow: 2.0.0 - '@vitest/mocker@3.0.7(vite@6.2.0(@types/node@22.13.0))': + '@vitest/mocker@3.2.4(vite@6.2.0(@types/node@22.13.0))': dependencies: - '@vitest/spy': 3.0.7 + '@vitest/spy': 3.2.4 estree-walker: 3.0.3 magic-string: 0.30.17 optionalDependencies: @@ -3936,22 +4000,27 @@ snapshots: dependencies: tinyrainbow: 2.0.0 - '@vitest/runner@3.0.7': + '@vitest/pretty-format@3.2.4': dependencies: - '@vitest/utils': 3.0.7 + tinyrainbow: 2.0.0 + + '@vitest/runner@3.2.4': + dependencies: + '@vitest/utils': 3.2.4 pathe: 2.0.3 + strip-literal: 3.0.0 - '@vitest/snapshot@3.0.7': + '@vitest/snapshot@3.2.4': dependencies: - '@vitest/pretty-format': 3.0.7 + '@vitest/pretty-format': 3.2.4 magic-string: 0.30.17 pathe: 2.0.3 - '@vitest/spy@3.0.7': + '@vitest/spy@3.2.4': dependencies: - tinyspy: 3.0.2 + tinyspy: 4.0.3 - '@vitest/ui@3.0.7(vitest@3.0.7)': + '@vitest/ui@3.0.7(vitest@3.2.4)': dependencies: '@vitest/utils': 3.0.7 fflate: 0.8.2 @@ -3960,7 +4029,7 @@ snapshots: sirv: 3.0.1 tinyglobby: 0.2.12 tinyrainbow: 2.0.0 - vitest: 3.0.7(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0) + vitest: 3.2.4(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0) '@vitest/utils@3.0.7': dependencies: @@ -3968,6 +4037,12 @@ snapshots: loupe: 3.1.3 tinyrainbow: 2.0.0 + '@vitest/utils@3.2.4': + dependencies: + '@vitest/pretty-format': 3.2.4 + loupe: 3.1.4 + tinyrainbow: 2.0.0 + acorn-jsx@5.3.2(acorn@8.14.0): dependencies: acorn: 8.14.0 @@ -4331,6 +4406,10 @@ snapshots: dependencies: ms: 2.1.3 + debug@4.4.1: + dependencies: + ms: 2.1.3 + decamelize@1.2.0: {} decimal.js@10.5.0: {} @@ -4492,7 +4571,7 @@ snapshots: iterator.prototype: 1.1.5 safe-array-concat: 1.1.3 - es-module-lexer@1.6.0: {} + es-module-lexer@1.7.0: {} es-object-atoms@1.1.1: dependencies: @@ -4681,7 +4760,7 @@ snapshots: signal-exit: 3.0.7 strip-final-newline: 2.0.0 - expect-type@1.2.0: {} + expect-type@1.2.2: {} external-editor@3.1.0: dependencies: @@ -4719,6 +4798,10 @@ snapshots: optionalDependencies: picomatch: 4.0.2 + fdir@6.4.6(picomatch@4.0.2): + optionalDependencies: + picomatch: 4.0.2 + fflate@0.8.2: {} figures@3.2.0: @@ -5233,7 +5316,7 @@ snapshots: istanbul-lib-source-maps@5.0.6: dependencies: '@jridgewell/trace-mapping': 0.3.25 - debug: 4.4.0 + debug: 4.4.1 istanbul-lib-coverage: 3.2.2 transitivePeerDependencies: - supports-color @@ -5264,6 +5347,8 @@ snapshots: js-tokens@4.0.0: {} + js-tokens@9.0.1: {} + js-yaml@3.14.1: dependencies: argparse: 1.0.10 @@ -5366,6 +5451,8 @@ snapshots: loupe@3.1.3: {} + loupe@3.1.4: {} + lower-case-first@1.0.2: dependencies: lower-case: 1.1.4 @@ -6092,7 +6179,7 @@ snapshots: stackback@0.0.2: {} - std-env@3.8.0: {} + std-env@3.9.0: {} streamsearch@1.1.0: {} @@ -6172,6 +6259,10 @@ snapshots: strip-json-comments@3.1.1: {} + strip-literal@3.0.0: + dependencies: + js-tokens: 9.0.1 + styled-jsx@5.1.6(@babel/core@7.26.9)(react@19.0.0): dependencies: client-only: 0.0.1 @@ -6221,16 +6312,21 @@ snapshots: fdir: 6.4.3(picomatch@4.0.2) picomatch: 4.0.2 + tinyglobby@0.2.14: + dependencies: + fdir: 6.4.6(picomatch@4.0.2) + picomatch: 4.0.2 + tinygradient@1.1.5: dependencies: '@types/tinycolor2': 1.4.6 tinycolor2: 1.6.0 - tinypool@1.0.2: {} + tinypool@1.1.1: {} tinyrainbow@2.0.0: {} - tinyspy@3.0.2: {} + tinyspy@4.0.3: {} title-case@2.1.1: dependencies: @@ -6373,6 +6469,8 @@ snapshots: typescript@5.8.2: {} + typescript@5.8.3: {} + uglify-js@3.19.3: optional: true @@ -6416,11 +6514,11 @@ snapshots: validate-npm-package-name@5.0.1: {} - vite-node@3.0.7(@types/node@22.13.0): + vite-node@3.2.4(@types/node@22.13.0): dependencies: cac: 6.7.14 - debug: 4.4.0 - es-module-lexer: 1.6.0 + debug: 4.4.1 + es-module-lexer: 1.7.0 pathe: 2.0.3 vite: 6.2.0(@types/node@22.13.0) transitivePeerDependencies: @@ -6446,31 +6544,34 @@ snapshots: '@types/node': 22.13.0 fsevents: 2.3.3 - vitest@3.0.7(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0): + vitest@3.2.4(@types/node@22.13.0)(@vitest/ui@3.0.7)(jsdom@26.0.0): dependencies: - '@vitest/expect': 3.0.7 - '@vitest/mocker': 3.0.7(vite@6.2.0(@types/node@22.13.0)) - '@vitest/pretty-format': 3.0.7 - '@vitest/runner': 3.0.7 - '@vitest/snapshot': 3.0.7 - '@vitest/spy': 3.0.7 - '@vitest/utils': 3.0.7 + '@types/chai': 5.2.2 + '@vitest/expect': 3.2.4 + '@vitest/mocker': 3.2.4(vite@6.2.0(@types/node@22.13.0)) + '@vitest/pretty-format': 3.2.4 + '@vitest/runner': 3.2.4 + '@vitest/snapshot': 3.2.4 + '@vitest/spy': 3.2.4 + '@vitest/utils': 3.2.4 chai: 5.2.0 - debug: 4.4.0 - expect-type: 1.2.0 + debug: 4.4.1 + expect-type: 1.2.2 magic-string: 0.30.17 pathe: 2.0.3 - std-env: 3.8.0 + picomatch: 4.0.2 + std-env: 3.9.0 tinybench: 2.9.0 tinyexec: 0.3.2 - tinypool: 1.0.2 + tinyglobby: 0.2.14 + tinypool: 1.1.1 tinyrainbow: 2.0.0 vite: 6.2.0(@types/node@22.13.0) - vite-node: 3.0.7(@types/node@22.13.0) + vite-node: 3.2.4(@types/node@22.13.0) why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 22.13.0 - '@vitest/ui': 3.0.7(vitest@3.0.7) + '@vitest/ui': 3.0.7(vitest@3.2.4) jsdom: 26.0.0 transitivePeerDependencies: - jiti diff --git a/examples/with-vitest/turbo.json b/examples/with-vitest/turbo.json index 2a67315f04bcf..a6c716a6c5425 100644 --- a/examples/with-vitest/turbo.json +++ b/examples/with-vitest/turbo.json @@ -18,6 +18,7 @@ "persistent": true }, "test": { + "inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/vitest.config.ts"], "dependsOn": ["transit", "@repo/vitest-config#build"], "outputs": ["coverage.json"] }, diff --git a/examples/with-vitest/vitest.config.ts b/examples/with-vitest/vitest.config.ts index 0027165150cb7..310a520a6d9ad 100644 --- a/examples/with-vitest/vitest.config.ts +++ b/examples/with-vitest/vitest.config.ts @@ -1,25 +1,26 @@ -import { defineConfig } from 'vitest/config'; -import { sharedConfig } from '@repo/vitest-config'; +import { defineConfig } from "vitest/config"; +import { sharedConfig } from "@repo/vitest-config"; export default defineConfig({ ...sharedConfig, - projects: [ - { - name: 'packages', - root: './packages/*', - test: { - ...sharedConfig.test, - // Project-specific configuration for packages - } - }, - { - name: 'apps', - root: './apps/*', - test: { - ...sharedConfig.test, - // Project-specific configuration for apps - environment: 'jsdom', - } - } - ] -}); \ No newline at end of file + test: { + projects: [ + { + root: "./packages/*", + test: { + ...sharedConfig.test, + // Project-specific configuration for packages + // ... + }, + }, + { + root: "./apps/*", + test: { + ...sharedConfig.test, + // Project-specific configuration for apps + environment: "jsdom", + }, + }, + ], + }, +});