Tighten the repo-state automation so canonical bot commits remain predictable while leaving main clean after each sync. Make the public catalog UI more honest by hiding dev-only sync, turning stars into explicit browser-local saves, aligning risk types, and removing hardcoded catalog counts. Add shared public asset URL helpers, risk suggestion plumbing, safer unpack/sync guards, and CI coverage gates so release and maintainer workflows catch drift earlier.
37 lines
855 B
TypeScript
37 lines
855 B
TypeScript
import { defineConfig, mergeConfig } from 'vitest/config';
|
|
import viteConfig from './vite.config';
|
|
|
|
export default mergeConfig(
|
|
viteConfig,
|
|
defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: './src/test/setup.ts',
|
|
css: true,
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'html'],
|
|
include: [
|
|
'src/components/**/*.{ts,tsx}',
|
|
'src/context/**/*.{ts,tsx}',
|
|
'src/hooks/**/*.{ts,tsx}',
|
|
'src/pages/**/*.{ts,tsx}',
|
|
'src/utils/**/*.{ts,tsx}',
|
|
],
|
|
exclude: [
|
|
'src/**/*.test.{ts,tsx}',
|
|
'src/**/__tests__/**',
|
|
'src/test/**',
|
|
],
|
|
thresholds: {
|
|
statements: 75,
|
|
lines: 75,
|
|
functions: 70,
|
|
branches: 60,
|
|
},
|
|
},
|
|
},
|
|
})
|
|
);
|