diff --git a/packages/adapter-netlify/package.json b/packages/adapter-netlify/package.json index 25c233cbc61c..b9494582501c 100644 --- a/packages/adapter-netlify/package.json +++ b/packages/adapter-netlify/package.json @@ -48,7 +48,7 @@ "@types/set-cookie-parser": "^2.4.7", "rollup": "^4.14.2", "typescript": "^5.3.3", - "vitest": "^1.5.0" + "vitest": "^1.6.0" }, "peerDependencies": { "@sveltejs/kit": "^2.4.0" diff --git a/packages/adapter-node/package.json b/packages/adapter-node/package.json index aa81728e3750..7ece26bdd91d 100644 --- a/packages/adapter-node/package.json +++ b/packages/adapter-node/package.json @@ -41,7 +41,7 @@ "polka": "1.0.0-next.25", "sirv": "^2.0.4", "typescript": "^5.3.3", - "vitest": "^1.5.0" + "vitest": "^1.6.0" }, "dependencies": { "@rollup/plugin-commonjs": "^25.0.8", diff --git a/packages/adapter-vercel/package.json b/packages/adapter-vercel/package.json index f0aa1208dcdb..fc4e3744110e 100644 --- a/packages/adapter-vercel/package.json +++ b/packages/adapter-vercel/package.json @@ -39,7 +39,7 @@ "@sveltejs/vite-plugin-svelte": "^3.0.1", "@types/node": "^18.19.3", "typescript": "^5.3.3", - "vitest": "^1.5.0" + "vitest": "^1.6.0" }, "peerDependencies": { "@sveltejs/kit": "^2.4.0" diff --git a/packages/create-svelte/package.json b/packages/create-svelte/package.json index cff7bdf7c6cc..0c26786e373d 100644 --- a/packages/create-svelte/package.json +++ b/packages/create-svelte/package.json @@ -25,7 +25,7 @@ "svelte": "^4.2.10", "tiny-glob": "^0.2.9", "typescript": "^5.3.3", - "vitest": "^1.5.0" + "vitest": "^1.6.0" }, "scripts": { "build": "node scripts/build-templates", diff --git a/packages/enhanced-img/package.json b/packages/enhanced-img/package.json index c1863ce364cb..8d70069eb3f3 100644 --- a/packages/enhanced-img/package.json +++ b/packages/enhanced-img/package.json @@ -38,6 +38,6 @@ "svelte": "^4.2.10", "typescript": "^5.3.3", "vite": "^5.2.8", - "vitest": "^1.5.0" + "vitest": "^1.6.0" } } diff --git a/packages/kit/package.json b/packages/kit/package.json index 335e5854006e..95c74ebc3b1d 100644 --- a/packages/kit/package.json +++ b/packages/kit/package.json @@ -37,7 +37,7 @@ "svelte-preprocess": "^5.1.3", "typescript": "^5.3.3", "vite": "^5.2.8", - "vitest": "^1.5.0" + "vitest": "^1.6.0" }, "peerDependencies": { "@sveltejs/vite-plugin-svelte": "^3.0.0", diff --git a/packages/kit/src/core/postbuild/queue.spec.js b/packages/kit/src/core/postbuild/queue.spec.js index deb13a7f7119..0b1ba006657e 100644 --- a/packages/kit/src/core/postbuild/queue.spec.js +++ b/packages/kit/src/core/postbuild/queue.spec.js @@ -79,7 +79,7 @@ test('q.add fails if queue is already finished', async () => { q.add(() => {}); await q.done(); - assert.throws(() => q.add(() => {}), /Cannot add tasks to a queue that has ended/); + expect(() => q.add(() => {})).throws(/Cannot add tasks to a queue that has ended/); }); test('q.done() resolves if nothing was added to the queue', async () => { diff --git a/packages/kit/test/build-errors/package.json b/packages/kit/test/build-errors/package.json index acee92783b35..8f7987f8cc05 100644 --- a/packages/kit/test/build-errors/package.json +++ b/packages/kit/test/build-errors/package.json @@ -8,6 +8,6 @@ }, "type": "module", "devDependencies": { - "vitest": "^1.5.0" + "vitest": "^1.6.0" } } diff --git a/packages/kit/test/prerendering/basics/package.json b/packages/kit/test/prerendering/basics/package.json index 6f0fabefb30a..8c98ae33da7d 100644 --- a/packages/kit/test/prerendering/basics/package.json +++ b/packages/kit/test/prerendering/basics/package.json @@ -17,7 +17,7 @@ "svelte-check": "^3.6.3", "typescript": "^5.3.3", "vite": "^5.2.8", - "vitest": "^1.5.0" + "vitest": "^1.6.0" }, "type": "module" } diff --git a/packages/kit/test/prerendering/options/package.json b/packages/kit/test/prerendering/options/package.json index f12c4fac788d..56e87fddc087 100644 --- a/packages/kit/test/prerendering/options/package.json +++ b/packages/kit/test/prerendering/options/package.json @@ -16,7 +16,7 @@ "svelte-check": "^3.6.3", "typescript": "^5.3.3", "vite": "^5.2.8", - "vitest": "^1.5.0" + "vitest": "^1.6.0" }, "type": "module" } diff --git a/packages/kit/test/prerendering/paths-base/package.json b/packages/kit/test/prerendering/paths-base/package.json index 397ef17ef5e5..a8d4067c6cf8 100644 --- a/packages/kit/test/prerendering/paths-base/package.json +++ b/packages/kit/test/prerendering/paths-base/package.json @@ -16,7 +16,7 @@ "svelte-check": "^3.6.3", "typescript": "^5.3.3", "vite": "^5.2.8", - "vitest": "^1.5.0" + "vitest": "^1.6.0" }, "type": "module" } diff --git a/packages/migrate/package.json b/packages/migrate/package.json index dcfeded4c57a..f00e7bc1776c 100644 --- a/packages/migrate/package.json +++ b/packages/migrate/package.json @@ -40,7 +40,7 @@ "@types/semver": "^7.5.6", "prettier": "^3.1.1", "svelte": "^4.2.10", - "vitest": "^1.5.0" + "vitest": "^1.6.0" }, "scripts": { "test": "vitest run --silent", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7dfe0ad6ef40..fa5d79fd93e3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -154,8 +154,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vitest: - specifier: ^1.5.0 - version: 1.5.0(@types/node@18.19.31)(lightningcss@1.24.1) + specifier: ^1.6.0 + version: 1.6.0(@types/node@18.19.31)(lightningcss@1.24.1) packages/adapter-node: dependencies: @@ -197,8 +197,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vitest: - specifier: ^1.5.0 - version: 1.5.0(@types/node@18.19.31)(lightningcss@1.24.1) + specifier: ^1.6.0 + version: 1.6.0(@types/node@18.19.31)(lightningcss@1.24.1) packages/adapter-static: devDependencies: @@ -288,8 +288,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vitest: - specifier: ^1.5.0 - version: 1.5.0(@types/node@18.19.31)(lightningcss@1.24.1) + specifier: ^1.6.0 + version: 1.6.0(@types/node@18.19.31)(lightningcss@1.24.1) packages/amp: dependencies: @@ -338,8 +338,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vitest: - specifier: ^1.5.0 - version: 1.5.0(@types/node@18.19.31)(lightningcss@1.24.1) + specifier: ^1.6.0 + version: 1.6.0(@types/node@18.19.31)(lightningcss@1.24.1) packages/create-svelte/templates/default: dependencies: @@ -409,8 +409,8 @@ importers: specifier: ^5.2.8 version: 5.2.8(@types/node@18.19.31)(lightningcss@1.24.1) vitest: - specifier: ^1.5.0 - version: 1.5.0(@types/node@18.19.31)(lightningcss@1.24.1) + specifier: ^1.6.0 + version: 1.6.0(@types/node@18.19.31)(lightningcss@1.24.1) packages/kit: dependencies: @@ -488,8 +488,8 @@ importers: specifier: ^5.2.8 version: 5.2.8(@types/node@18.19.31)(lightningcss@1.24.1) vitest: - specifier: ^1.5.0 - version: 1.5.0(@types/node@18.19.31)(lightningcss@1.24.1) + specifier: ^1.6.0 + version: 1.6.0(@types/node@18.19.31)(lightningcss@1.24.1) packages/kit/test/apps/amp: devDependencies: @@ -728,8 +728,8 @@ importers: packages/kit/test/build-errors: devDependencies: vitest: - specifier: ^1.5.0 - version: 1.5.0(@types/node@18.19.31)(lightningcss@1.24.1) + specifier: ^1.6.0 + version: 1.6.0(@types/node@18.19.31)(lightningcss@1.24.1) packages/kit/test/build-errors/apps/prerender-entry-generator-mismatch: devDependencies: @@ -1058,8 +1058,8 @@ importers: specifier: ^5.2.8 version: 5.2.8(@types/node@18.19.31)(lightningcss@1.24.1) vitest: - specifier: ^1.5.0 - version: 1.5.0(@types/node@18.19.31)(lightningcss@1.24.1) + specifier: ^1.6.0 + version: 1.6.0(@types/node@18.19.31)(lightningcss@1.24.1) packages/kit/test/prerendering/options: devDependencies: @@ -1082,8 +1082,8 @@ importers: specifier: ^5.2.8 version: 5.2.8(@types/node@18.19.31)(lightningcss@1.24.1) vitest: - specifier: ^1.5.0 - version: 1.5.0(@types/node@18.19.31)(lightningcss@1.24.1) + specifier: ^1.6.0 + version: 1.6.0(@types/node@18.19.31)(lightningcss@1.24.1) packages/kit/test/prerendering/paths-base: devDependencies: @@ -1106,8 +1106,8 @@ importers: specifier: ^5.2.8 version: 5.2.8(@types/node@18.19.31)(lightningcss@1.24.1) vitest: - specifier: ^1.5.0 - version: 1.5.0(@types/node@18.19.31)(lightningcss@1.24.1) + specifier: ^1.6.0 + version: 1.6.0(@types/node@18.19.31)(lightningcss@1.24.1) packages/migrate: dependencies: @@ -1155,8 +1155,8 @@ importers: specifier: ^4.2.10 version: 4.2.14 vitest: - specifier: ^1.5.0 - version: 1.5.0(@types/node@18.19.31)(lightningcss@1.24.1) + specifier: ^1.6.0 + version: 1.6.0(@types/node@18.19.31)(lightningcss@1.24.1) packages/package: dependencies: @@ -1325,8 +1325,8 @@ importers: specifier: ^5.2.8 version: 5.2.8(@types/node@18.19.31)(lightningcss@1.24.1) vitest: - specifier: ^1.5.0 - version: 1.5.0(@types/node@18.19.31)(lightningcss@1.24.1) + specifier: ^1.6.0 + version: 1.6.0(@types/node@18.19.31)(lightningcss@1.24.1) packages: @@ -2389,20 +2389,20 @@ packages: vue-router: optional: true - '@vitest/expect@1.5.0': - resolution: {integrity: sha512-0pzuCI6KYi2SIC3LQezmxujU9RK/vwC1U9R0rLuGlNGcOuDWxqWKu6nUdFsX9tH1WU0SXtAxToOsEjeUn1s3hA==} + '@vitest/expect@1.6.0': + resolution: {integrity: sha512-ixEvFVQjycy/oNgHjqsL6AZCDduC+tflRluaHIzKIsdbzkLn2U/iBnVeJwB6HsIjQBdfMR8Z0tRxKUsvFJEeWQ==} - '@vitest/runner@1.5.0': - resolution: {integrity: sha512-7HWwdxXP5yDoe7DTpbif9l6ZmDwCzcSIK38kTSIt6CFEpMjX4EpCgT6wUmS0xTXqMI6E/ONmfgRKmaujpabjZQ==} + '@vitest/runner@1.6.0': + resolution: {integrity: sha512-P4xgwPjwesuBiHisAVz/LSSZtDjOTPYZVmNAnpHHSR6ONrf8eCJOFRvUwdHn30F5M1fxhqtl7QZQUk2dprIXAg==} - '@vitest/snapshot@1.5.0': - resolution: {integrity: sha512-qpv3fSEuNrhAO3FpH6YYRdaECnnRjg9VxbhdtPwPRnzSfHVXnNzzrpX4cJxqiwgRMo7uRMWDFBlsBq4Cr+rO3A==} + '@vitest/snapshot@1.6.0': + resolution: {integrity: sha512-+Hx43f8Chus+DCmygqqfetcAZrDJwvTj0ymqjQq4CvmpKFSTVteEOBzCusu1x2tt4OJcvBflyHUE0DZSLgEMtQ==} - '@vitest/spy@1.5.0': - resolution: {integrity: sha512-vu6vi6ew5N5MMHJjD5PoakMRKYdmIrNJmyfkhRpQt5d9Ewhw9nZ5Aqynbi3N61bvk9UvZ5UysMT6ayIrZ8GA9w==} + '@vitest/spy@1.6.0': + resolution: {integrity: sha512-leUTap6B/cqi/bQkXUu6bQV5TZPx7pmMBKBQiI0rJA8c3pB56ZsaTbREnF7CJfmvAS4V2cXIBAh/3rVwrrCYgw==} - '@vitest/utils@1.5.0': - resolution: {integrity: sha512-BDU0GNL8MWkRkSRdNFvCUCAVOeHaUlVJ9Tx0TYBZyXaaOTmGtUFObzchCivIBrIwKzvZA7A9sCejVhXM2aY98A==} + '@vitest/utils@1.6.0': + resolution: {integrity: sha512-21cPiuGMoMZwiOHa2i4LXkMkMkCGzA+MVFV70jRwHo95dL4x/ts5GZhML1QWuy7yfp3WzK3lRvZi3JnXTYqrBw==} abbrev@1.1.1: resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==} @@ -4114,8 +4114,8 @@ packages: resolution: {integrity: sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==} engines: {node: '>=8'} - react-is@18.2.0: - resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==} + react-is@18.3.1: + resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==} read-pkg-up@7.0.1: resolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==} @@ -4744,8 +4744,8 @@ packages: resolution: {integrity: sha512-23jnLhkTH0HR9Vd9LxMYnajOLeo0RJNEAHhtlsQP6kfPuOBoTzt54rWbEWB9jmhEXAOflLQpM+FrmilVPAoyGA==} engines: {node: '>=18.0.0'} - vite-node@1.5.0: - resolution: {integrity: sha512-tV8h6gMj6vPzVCa7l+VGq9lwoJjW8Y79vst8QZZGiuRAfijU+EEWuc0kFpmndQrWhMMhet1jdSF+40KSZUqIIw==} + vite-node@1.6.0: + resolution: {integrity: sha512-de6HJgzC+TFzOu0NTC4RAIsyf/DY/ibWDYQUcuEA84EMHhcefTUGkjFHKKEJhQN4A+6I0u++kr3l36ZF2d7XRw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -4813,15 +4813,15 @@ packages: vite: optional: true - vitest@1.5.0: - resolution: {integrity: sha512-d8UKgR0m2kjdxDWX6911uwxout6GHS0XaGH1cksSIVVG8kRlE7G7aBw7myKQCvDI5dT4j7ZMa+l706BIORMDLw==} + vitest@1.6.0: + resolution: {integrity: sha512-H5r/dN06swuFnzNFhq/dnz37bPXnq8xB2xB5JOVk8K09rUtoeNN+LHWkoQ0A/i3hvbUKKcCei9KpbxqHMLhLLA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' '@types/node': ^18.0.0 || >=20.0.0 - '@vitest/browser': 1.5.0 - '@vitest/ui': 1.5.0 + '@vitest/browser': 1.6.0 + '@vitest/ui': 1.6.0 happy-dom: '*' jsdom: '*' peerDependenciesMeta: @@ -6023,29 +6023,29 @@ snapshots: '@sveltejs/kit': link:packages/kit svelte: 4.2.14 - '@vitest/expect@1.5.0': + '@vitest/expect@1.6.0': dependencies: - '@vitest/spy': 1.5.0 - '@vitest/utils': 1.5.0 + '@vitest/spy': 1.6.0 + '@vitest/utils': 1.6.0 chai: 4.4.1 - '@vitest/runner@1.5.0': + '@vitest/runner@1.6.0': dependencies: - '@vitest/utils': 1.5.0 + '@vitest/utils': 1.6.0 p-limit: 5.0.0 pathe: 1.1.2 - '@vitest/snapshot@1.5.0': + '@vitest/snapshot@1.6.0': dependencies: magic-string: 0.30.9 pathe: 1.1.2 pretty-format: 29.7.0 - '@vitest/spy@1.5.0': + '@vitest/spy@1.6.0': dependencies: tinyspy: 2.2.1 - '@vitest/utils@1.5.0': + '@vitest/utils@1.6.0': dependencies: diff-sequences: 29.6.3 estree-walker: 3.0.3 @@ -7778,7 +7778,7 @@ snapshots: dependencies: '@jest/schemas': 29.6.3 ansi-styles: 5.2.0 - react-is: 18.2.0 + react-is: 18.3.1 printable-characters@1.0.42: {} @@ -7805,7 +7805,7 @@ snapshots: quick-lru@4.0.1: {} - react-is@18.2.0: {} + react-is@18.3.1: {} read-pkg-up@7.0.1: dependencies: @@ -8552,7 +8552,7 @@ snapshots: transitivePeerDependencies: - rollup - vite-node@1.5.0(@types/node@18.19.31)(lightningcss@1.24.1): + vite-node@1.6.0(@types/node@18.19.31)(lightningcss@1.24.1): dependencies: cac: 6.7.14 debug: 4.3.4 @@ -8597,13 +8597,13 @@ snapshots: optionalDependencies: vite: 5.2.8(@types/node@18.19.31)(lightningcss@1.24.1) - vitest@1.5.0(@types/node@18.19.31)(lightningcss@1.24.1): + vitest@1.6.0(@types/node@18.19.31)(lightningcss@1.24.1): dependencies: - '@vitest/expect': 1.5.0 - '@vitest/runner': 1.5.0 - '@vitest/snapshot': 1.5.0 - '@vitest/spy': 1.5.0 - '@vitest/utils': 1.5.0 + '@vitest/expect': 1.6.0 + '@vitest/runner': 1.6.0 + '@vitest/snapshot': 1.6.0 + '@vitest/spy': 1.6.0 + '@vitest/utils': 1.6.0 acorn-walk: 8.3.2 chai: 4.4.1 debug: 4.3.4 @@ -8617,7 +8617,7 @@ snapshots: tinybench: 2.6.0 tinypool: 0.8.3 vite: 5.2.8(@types/node@18.19.31)(lightningcss@1.24.1) - vite-node: 1.5.0(@types/node@18.19.31)(lightningcss@1.24.1) + vite-node: 1.6.0(@types/node@18.19.31)(lightningcss@1.24.1) why-is-node-running: 2.2.2 optionalDependencies: '@types/node': 18.19.31 diff --git a/sites/kit.svelte.dev/package.json b/sites/kit.svelte.dev/package.json index 1f43dfa90cc1..515cd97b2b72 100644 --- a/sites/kit.svelte.dev/package.json +++ b/sites/kit.svelte.dev/package.json @@ -34,7 +34,7 @@ "svelte": "^4.2.10", "typescript": "5.0.4", "vite": "^5.2.8", - "vitest": "^1.5.0" + "vitest": "^1.6.0" }, "type": "module", "dependencies": {