From 0fff6afc8c0b18b29d4b58ce20dd47b705a85a6f Mon Sep 17 00:00:00 2001 From: TheSparta Date: Sat, 4 Nov 2023 21:07:44 +0000 Subject: [PATCH] switched coverage provider from `v8` to `istanbul` --- project/package.json | 3 +-- project/vitest.config.ts | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/project/package.json b/project/package.json index 933b6bcd..872f3dd4 100644 --- a/project/package.json +++ b/project/package.json @@ -56,9 +56,8 @@ "@types/ws": "8.5.7", "@typescript-eslint/eslint-plugin": "6.7.5", "@typescript-eslint/parser": "6.7.5", - "@vitest/coverage-v8": "1.0.0-beta.3", + "@vitest/coverage-istanbul": "1.0.0-beta.3", "@vitest/ui": "1.0.0-beta.3", - "c8": "^8.0.1", "cross-env": "7.0.3", "date-fns": "^2.30.0", "eslint": "8.51.0", diff --git a/project/vitest.config.ts b/project/vitest.config.ts index b5bd7afc..3975648c 100644 --- a/project/vitest.config.ts +++ b/project/vitest.config.ts @@ -12,13 +12,13 @@ export default defineConfig({ environment: "./tests/CustomEnvironment.ts", globals: true, coverage: { - provider: "v8", + provider: "istanbul", reporter: ["text", "html"], reportsDirectory: "./tests/__coverage__", reportOnFailure: true, all: true, include: ["src"], - exclude: ["src/models/**", "tests/**"] + exclude: ["src/models/**", "tests/**"] }, typecheck: { enabled: true