Files
atalaya/vitest.config.ts
dcarrillo 3882a1941a Kick off (#1)
* Kick off
* Update LICENSE copyright
2026-04-11 13:22:36 +02:00

23 lines
494 B
TypeScript

import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [
{
name: 'mock-astro-ssr',
resolveId(id: string) {
// Allow vi.mock to intercept the Astro SSR build artifact that doesn't exist during tests
if (id.includes('status-page/dist/_worker.js/index.js')) {
return id;
}
return null;
},
},
],
test: {
globals: true,
environment: 'node',
include: ['src/**/*.test.ts'],
},
});