From 9b07457cbbbdd89ddb6e4cd4491ce86239ae78fb Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Tue, 5 Mar 2024 18:20:47 +0100 Subject: [PATCH] chore: fix vitest plugin type --- .github/dependabot.yml | 3 ++- packages/worker/vitest.config.ts | 6 ++++-- public/mockServiceWorker.js | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e34557a9..c6911305 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -14,9 +14,10 @@ updates: - minor - patch - patch-prod: + minor-patch-prod: dependency-type: production update-types: + - minor - patch - package-ecosystem: 'github-actions' diff --git a/packages/worker/vitest.config.ts b/packages/worker/vitest.config.ts index e623d863..bb7c753d 100644 --- a/packages/worker/vitest.config.ts +++ b/packages/worker/vitest.config.ts @@ -1,8 +1,10 @@ -import { defineConfig } from 'vitest/config'; +import { UserWorkspaceConfig, defineConfig } from 'vitest/config'; import tsconfigPaths from 'vite-tsconfig-paths'; +type Plugin = Exclude[number]; + export default defineConfig({ - plugins: [tsconfigPaths()], + plugins: [tsconfigPaths() as Plugin], test: { setupFiles: ['./tests/vite.setup.ts'], coverage: { all: true, reporter: ['lcov', 'text-summary'] }, diff --git a/public/mockServiceWorker.js b/public/mockServiceWorker.js index e369128e..0acd8ff4 100644 --- a/public/mockServiceWorker.js +++ b/public/mockServiceWorker.js @@ -2,13 +2,13 @@ /* tslint:disable */ /** - * Mock Service Worker (2.0.11). + * Mock Service Worker (2.2.2). * @see https://github.com/mswjs/msw * - Please do NOT modify this file. * - Please do NOT serve this file on production. */ -const INTEGRITY_CHECKSUM = 'c5f7f8e188b673ea4e677df7ea3c5a39' +const INTEGRITY_CHECKSUM = '223d191a56023cd36aa88c802961b911' const IS_MOCKED_RESPONSE = Symbol('isMockedResponse') const activeClientIds = new Set()