Files
metabuilder/frontends/nextjs/vitest.config.ts
JohnDoe6345789 e15e6731ce fix: resolve failing unit tests
- Fix package-integration.test.ts import paths (../../ → ../../../../)
- Add localStorage mock to useKV.test.ts
- Use unique keys in falsy value tests to avoid KV store collisions
2025-12-25 14:52:42 +00:00

22 lines
443 B
TypeScript

import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react-swc'
import { resolve } from 'path'
export default defineConfig({
plugins: [react()],
test: {
environment: 'jsdom',
globals: true,
include: ['src/**/*.test.{ts,tsx}'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
},
},
resolve: {
alias: {
'@': resolve(__dirname, './src'),
},
},
})