diff --git a/package.json b/package.json index 9c75be7..607420b 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "tailwindcss": "^4.1.18", "typescript": "~5.6.2", "vite": "^6.0.3", - "vitest": "^4.0.16", + "vitest": ">=1.0.0 <5.0.0", "webdriverio": "^9.5.0" } } diff --git a/src/lib/stores/downloads.test.ts b/src/lib/stores/downloads.test.ts index 4a7cb0d..ece4f36 100644 --- a/src/lib/stores/downloads.test.ts +++ b/src/lib/stores/downloads.test.ts @@ -43,7 +43,9 @@ describe("downloads store", () => { // Reset modules to get fresh store instances for each test // This prevents state pollution from affecting subsequent tests - vi.resetModules(); + if (typeof vi.resetModules === 'function') { + vi.resetModules(); + } }); describe("initial state", () => {