17 lines
427 B
TypeScript
17 lines
427 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: 'node',
|
|
include: ['src/**/*.test.{ts,tsx}'],
|
|
setupFiles: ['src/test/setup.ts'],
|
|
environmentMatchGlobs: [
|
|
['src/api/**', 'happy-dom'],
|
|
['src/context/**', 'happy-dom'],
|
|
['src/hooks/**', 'happy-dom'],
|
|
['src/pages/**', 'happy-dom'],
|
|
['src/components/**', 'happy-dom'],
|
|
],
|
|
},
|
|
});
|