diff --git a/packages/actions/package.json b/packages/actions/package.json index d23aa10aaa5c..46c76fe14b53 100644 --- a/packages/actions/package.json +++ b/packages/actions/package.json @@ -46,7 +46,7 @@ "@types/node": "^16.11.48", "@typescript-eslint/eslint-plugin": "^5.33.0", "@typescript-eslint/parser": "^5.33.0", - "c8": "^7.12.0", + "@vitest/coverage-c8": "^0.22.0", "eslint": "^8.22.0", "eslint-config-marine": "^9.4.1", "eslint-config-prettier": "^8.5.0", @@ -56,7 +56,7 @@ "rollup-plugin-typescript2": "0.32.1", "typescript": "^4.7.4", "unbuild": "^0.8.8", - "vitest": "^0.21.1" + "vitest": "^0.22.0" }, "engines": { "node": ">=16.9.0" diff --git a/packages/builders/package.json b/packages/builders/package.json index dcd0fc308283..527569ffa990 100644 --- a/packages/builders/package.json +++ b/packages/builders/package.json @@ -67,7 +67,7 @@ "@types/node": "^16.11.48", "@typescript-eslint/eslint-plugin": "^5.33.0", "@typescript-eslint/parser": "^5.33.0", - "c8": "^7.12.0", + "@vitest/coverage-c8": "^0.22.0", "downlevel-dts": "^0.10.0", "eslint": "^8.22.0", "eslint-config-marine": "^9.4.1", @@ -78,7 +78,7 @@ "rollup-plugin-typescript2": "0.32.1", "typescript": "^4.7.4", "unbuild": "^0.8.8", - "vitest": "^0.21.1" + "vitest": "^0.22.0" }, "engines": { "node": ">=16.9.0" diff --git a/packages/collection/package.json b/packages/collection/package.json index cbf55a3629db..bb98fa1d11d0 100644 --- a/packages/collection/package.json +++ b/packages/collection/package.json @@ -56,7 +56,7 @@ "@types/node": "^16.11.48", "@typescript-eslint/eslint-plugin": "^5.33.0", "@typescript-eslint/parser": "^5.33.0", - "c8": "^7.12.0", + "@vitest/coverage-c8": "^0.22.0", "downlevel-dts": "^0.10.0", "eslint": "^8.22.0", "eslint-config-marine": "^9.4.1", @@ -67,7 +67,7 @@ "rollup-plugin-typescript2": "0.32.1", "typescript": "^4.7.4", "unbuild": "^0.8.8", - "vitest": "^0.21.1" + "vitest": "^0.22.0" }, "engines": { "node": ">=16.9.0" diff --git a/packages/proxy/package.json b/packages/proxy/package.json index a9e6d11578f8..c1c20dcea653 100644 --- a/packages/proxy/package.json +++ b/packages/proxy/package.json @@ -66,7 +66,7 @@ "@types/supertest": "^2.0.12", "@typescript-eslint/eslint-plugin": "^5.33.0", "@typescript-eslint/parser": "^5.33.0", - "c8": "^7.12.0", + "@vitest/coverage-c8": "^0.22.0", "downlevel-dts": "^0.10.0", "eslint": "^8.22.0", "eslint-config-marine": "^9.4.1", @@ -78,7 +78,7 @@ "supertest": "^6.2.4", "typescript": "^4.7.4", "unbuild": "^0.8.8", - "vitest": "^0.21.1" + "vitest": "^0.22.0" }, "engines": { "node": ">=16.9.0" diff --git a/packages/rest/package.json b/packages/rest/package.json index 36be1f423a5c..61875f2f874e 100644 --- a/packages/rest/package.json +++ b/packages/rest/package.json @@ -67,7 +67,7 @@ "@types/node": "^16.11.48", "@typescript-eslint/eslint-plugin": "^5.33.0", "@typescript-eslint/parser": "^5.33.0", - "c8": "^7.12.0", + "@vitest/coverage-c8": "^0.22.0", "downlevel-dts": "^0.10.0", "eslint": "^8.22.0", "eslint-config-marine": "^9.4.1", @@ -78,7 +78,7 @@ "rollup-plugin-typescript2": "0.32.1", "typescript": "^4.7.4", "unbuild": "^0.8.8", - "vitest": "^0.21.1" + "vitest": "^0.22.0" }, "engines": { "node": ">=16.9.0" diff --git a/packages/scripts/package.json b/packages/scripts/package.json index 5ea088805a30..24e4a1931dd5 100644 --- a/packages/scripts/package.json +++ b/packages/scripts/package.json @@ -51,7 +51,7 @@ "@types/node": "^16.11.48", "@typescript-eslint/eslint-plugin": "^5.33.0", "@typescript-eslint/parser": "^5.33.0", - "c8": "^7.12.0", + "@vitest/coverage-c8": "^0.22.0", "eslint": "^8.22.0", "eslint-config-marine": "^9.4.1", "eslint-config-prettier": "^8.5.0", @@ -61,7 +61,7 @@ "rollup-plugin-typescript2": "0.32.1", "typescript": "^4.7.4", "unbuild": "^0.8.8", - "vitest": "^0.21.1" + "vitest": "^0.22.0" }, "engines": { "node": ">=16.9.0" diff --git a/packages/website/package.json b/packages/website/package.json index 544db31bd810..b4161f6938a9 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -78,7 +78,7 @@ "@unocss/preset-web-fonts": "^0.45.6", "@unocss/reset": "^0.45.6", "@vitejs/plugin-react": "^2.0.1", - "c8": "^7.12.0", + "@vitest/coverage-c8": "^0.22.0", "concurrently": "^7.3.0", "cypress": "^10.4.0", "eslint": "^8.22.0", @@ -93,7 +93,7 @@ "typescript": "^4.7.4", "unocss": "^0.45.6", "vercel": "^28.0.1", - "vitest": "^0.21.1" + "vitest": "^0.22.0" }, "engines": { "node": ">=16.9.0" diff --git a/packages/ws/package.json b/packages/ws/package.json index 6ad7e40bc68c..252809969be0 100644 --- a/packages/ws/package.json +++ b/packages/ws/package.json @@ -68,7 +68,7 @@ "@types/node": "^16.11.48", "@typescript-eslint/eslint-plugin": "^5.33.0", "@typescript-eslint/parser": "^5.33.0", - "c8": "^7.12.0", + "@vitest/coverage-c8": "^0.22.0", "eslint": "^8.22.0", "eslint-config-marine": "^9.4.1", "eslint-config-prettier": "^8.5.0", @@ -80,7 +80,7 @@ "typescript": "^4.7.4", "unbuild": "^0.8.8", "undici": "^5.8.2", - "vitest": "^0.21.1", + "vitest": "^0.22.0", "zlib-sync": "^0.1.7" }, "engines": { diff --git a/vitest.config.ts b/vitest.config.ts index 868e457b88d4..29ea679f9afa 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -8,6 +8,7 @@ export default defineConfig({ enabled: true, all: true, reporter: ['text', 'lcov', 'cobertura'], + provider: 'c8', include: ['src'], exclude: [ // All ts files that only contain types, due to ALL diff --git a/yarn.lock b/yarn.lock index b95dda5b8b80..7f03f5385195 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1711,7 +1711,7 @@ __metadata: "@types/node": ^16.11.48 "@typescript-eslint/eslint-plugin": ^5.33.0 "@typescript-eslint/parser": ^5.33.0 - c8: ^7.12.0 + "@vitest/coverage-c8": ^0.22.0 eslint: ^8.22.0 eslint-config-marine: ^9.4.1 eslint-config-prettier: ^8.5.0 @@ -1722,7 +1722,7 @@ __metadata: tslib: ^2.4.0 typescript: ^4.7.4 unbuild: ^0.8.8 - vitest: ^0.21.1 + vitest: ^0.22.0 languageName: unknown linkType: soft @@ -1737,7 +1737,7 @@ __metadata: "@types/node": ^16.11.48 "@typescript-eslint/eslint-plugin": ^5.33.0 "@typescript-eslint/parser": ^5.33.0 - c8: ^7.12.0 + "@vitest/coverage-c8": ^0.22.0 discord-api-types: ^0.37.2 downlevel-dts: ^0.10.0 eslint: ^8.22.0 @@ -1752,7 +1752,7 @@ __metadata: tslib: ^2.4.0 typescript: ^4.7.4 unbuild: ^0.8.8 - vitest: ^0.21.1 + vitest: ^0.22.0 languageName: unknown linkType: soft @@ -1766,7 +1766,7 @@ __metadata: "@types/node": ^16.11.48 "@typescript-eslint/eslint-plugin": ^5.33.0 "@typescript-eslint/parser": ^5.33.0 - c8: ^7.12.0 + "@vitest/coverage-c8": ^0.22.0 downlevel-dts: ^0.10.0 eslint: ^8.22.0 eslint-config-marine: ^9.4.1 @@ -1777,7 +1777,7 @@ __metadata: rollup-plugin-typescript2: 0.32.1 typescript: ^4.7.4 unbuild: ^0.8.8 - vitest: ^0.21.1 + vitest: ^0.22.0 languageName: unknown linkType: soft @@ -1861,7 +1861,7 @@ __metadata: "@types/supertest": ^2.0.12 "@typescript-eslint/eslint-plugin": ^5.33.0 "@typescript-eslint/parser": ^5.33.0 - c8: ^7.12.0 + "@vitest/coverage-c8": ^0.22.0 downlevel-dts: ^0.10.0 eslint: ^8.22.0 eslint-config-marine: ^9.4.1 @@ -1875,7 +1875,7 @@ __metadata: typescript: ^4.7.4 unbuild: ^0.8.8 undici: ^5.8.2 - vitest: ^0.21.1 + vitest: ^0.22.0 languageName: unknown linkType: soft @@ -1892,7 +1892,7 @@ __metadata: "@types/node": ^16.11.48 "@typescript-eslint/eslint-plugin": ^5.33.0 "@typescript-eslint/parser": ^5.33.0 - c8: ^7.12.0 + "@vitest/coverage-c8": ^0.22.0 discord-api-types: ^0.37.2 downlevel-dts: ^0.10.0 eslint: ^8.22.0 @@ -1907,7 +1907,7 @@ __metadata: typescript: ^4.7.4 unbuild: ^0.8.8 undici: ^5.8.2 - vitest: ^0.21.1 + vitest: ^0.22.0 languageName: unknown linkType: soft @@ -1918,7 +1918,7 @@ __metadata: "@types/node": ^16.11.48 "@typescript-eslint/eslint-plugin": ^5.33.0 "@typescript-eslint/parser": ^5.33.0 - c8: ^7.12.0 + "@vitest/coverage-c8": ^0.22.0 commander: ^9.4.0 eslint: ^8.22.0 eslint-config-marine: ^9.4.1 @@ -1930,7 +1930,7 @@ __metadata: tslib: ^2.4.0 typescript: ^4.7.4 unbuild: ^0.8.8 - vitest: ^0.21.1 + vitest: ^0.22.0 languageName: unknown linkType: soft @@ -1995,8 +1995,8 @@ __metadata: "@unocss/preset-web-fonts": ^0.45.6 "@unocss/reset": ^0.45.6 "@vitejs/plugin-react": ^2.0.1 + "@vitest/coverage-c8": ^0.22.0 "@vscode/codicons": ^0.0.32 - c8: ^7.12.0 concurrently: ^7.3.0 cypress: ^10.4.0 eslint: ^8.22.0 @@ -2017,7 +2017,7 @@ __metadata: typescript: ^4.7.4 unocss: ^0.45.6 vercel: ^28.0.1 - vitest: ^0.21.1 + vitest: ^0.22.0 languageName: unknown linkType: soft @@ -2035,8 +2035,8 @@ __metadata: "@types/ws": ^8.5.3 "@typescript-eslint/eslint-plugin": ^5.33.0 "@typescript-eslint/parser": ^5.33.0 + "@vitest/coverage-c8": ^0.22.0 "@vladfrangu/async_event_emitter": ^2.0.1 - c8: ^7.12.0 discord-api-types: ^0.37.2 eslint: ^8.22.0 eslint-config-marine: ^9.4.1 @@ -2050,7 +2050,7 @@ __metadata: typescript: ^4.7.4 unbuild: ^0.8.8 undici: ^5.8.2 - vitest: ^0.21.1 + vitest: ^0.22.0 ws: ^8.8.1 zlib-sync: ^0.1.7 languageName: unknown @@ -4474,6 +4474,16 @@ __metadata: languageName: node linkType: hard +"@vitest/coverage-c8@npm:^0.22.0": + version: 0.22.0 + resolution: "@vitest/coverage-c8@npm:0.22.0" + dependencies: + c8: ^7.12.0 + vitest: 0.22.0 + checksum: 6472eb7d32d380ac13756e77a4607c0ad78744a55a749c81cd0745cca3fbca23a69fcf6399e0575b3ece73cb2be483366945d088c06e0c3f2f34b807b6f92655 + languageName: node + linkType: hard + "@vladfrangu/async_event_emitter@npm:^2.0.1": version: 2.0.1 resolution: "@vladfrangu/async_event_emitter@npm:2.0.1" @@ -15863,9 +15873,9 @@ __metadata: languageName: node linkType: hard -"vitest@npm:^0.21.1": - version: 0.21.1 - resolution: "vitest@npm:0.21.1" +"vitest@npm:0.22.0, vitest@npm:^0.22.0": + version: 0.22.0 + resolution: "vitest@npm:0.22.0" dependencies: "@types/chai": ^4.3.3 "@types/chai-subset": ^1.3.3 @@ -15880,7 +15890,6 @@ __metadata: "@edge-runtime/vm": "*" "@vitest/browser": "*" "@vitest/ui": "*" - c8: "*" happy-dom: "*" jsdom: "*" peerDependenciesMeta: @@ -15890,15 +15899,13 @@ __metadata: optional: true "@vitest/ui": optional: true - c8: - optional: true happy-dom: optional: true jsdom: optional: true bin: vitest: vitest.mjs - checksum: 27c8cd0a1e2443e1311b1ed236d66caad77dcea2c4b49364475688d89d6f8dba2074b1a2da8e7ca529ded15bd5314ff4b36119a0010a33d2dcd34333d4043bd5 + checksum: 717ae0ba4b70fae97cde7daeac256e1b973ce5673737a4f8c436d50a8eea4f5109c9015dbbd762a9d36b24a29d2ccd0f126fedc1246026d8a0ed9df214885497 languageName: node linkType: hard