diff --git a/config/test/setupTests.ts b/config/test/setupTests.ts index e6a1f665..3411ca8b 100644 --- a/config/test/setupTests.ts +++ b/config/test/setupTests.ts @@ -17,7 +17,7 @@ expect.extend(matchers); afterEach(() => { // Clears all mocks after every test vi.clearAllMocks(); - // runs a cleanup after each test case (e.g. clearing jsdom) + // Run a cleanup after each test case (e.g. clearing jsdom) cleanup(); }); diff --git a/vite.config.ts b/vite.config.ts index 6a1bea03..f2464ec9 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -25,6 +25,7 @@ export default defineConfig({ }, base: !homepage ? undefined : homepage, // Not using just homepage because empty string should be discarded + // Vitest config test: { globals: true, environment: 'jsdom',