Files
flyer-crawler.projectium.com/vitest.config.ts
Torben Sorensen a3d3ddd772
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 57m50s
mock mock mock !
2025-12-19 20:31:04 -08:00

17 lines
517 B
TypeScript

/// <reference types="vitest" />
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'jsdom',
// This setup file is where we can add global test configurations
setupFiles: [
'./src/tests/setup/tests-setup-unit.ts',
'./src/tests/setup/mockHooks.ts',
'./src/tests/setup/mockComponents.tsx'
],
// This line is the key fix: it tells Vitest to include the type definitions
include: ['src/**/*.test.tsx'],
},
});