From a59e3ce1a92c415515ddf4c42595d339ab999bb5 Mon Sep 17 00:00:00 2001 From: mato533 <35281743+mato533@users.noreply.github.com> Date: Fri, 6 Dec 2024 14:22:33 +0900 Subject: [PATCH] chore: adjust configurations for vitest --- packages/electron-typed-ipc-bridge/package.json | 2 +- packages/electron-typed-ipc-bridge/vitest.config.ts | 1 + pnpm-lock.yaml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/electron-typed-ipc-bridge/package.json b/packages/electron-typed-ipc-bridge/package.json index e847bd4..ce89c77 100644 --- a/packages/electron-typed-ipc-bridge/package.json +++ b/packages/electron-typed-ipc-bridge/package.json @@ -85,7 +85,7 @@ "rollup-plugin-delete": "^2.1.0", "rollup-plugin-dts": "^6.1.1", "rollup-plugin-node-externals": "^7.1.3", - "vitest": "^2.1.6" + "vitest": "^2.1.8" }, "keywords": [ "electron", diff --git a/packages/electron-typed-ipc-bridge/vitest.config.ts b/packages/electron-typed-ipc-bridge/vitest.config.ts index d669ed3..58fbf59 100644 --- a/packages/electron-typed-ipc-bridge/vitest.config.ts +++ b/packages/electron-typed-ipc-bridge/vitest.config.ts @@ -8,6 +8,7 @@ export default defineConfig({ silent: true, include: ['src/**/*.spec.ts'], coverage: { + provider: 'v8', exclude: ['src/index.ts', ...coverageConfigDefaults.exclude], thresholds: { lines: 70, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0d551c8..97fcb72 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -82,7 +82,7 @@ importers: specifier: ^7.1.3 version: 7.1.3(rollup@4.28.0) vitest: - specifier: ^2.1.6 + specifier: ^2.1.8 version: 2.1.8(@types/node@22.10.1) packages/sample-app: