Files
RSSHub/vitest.config.ts
Tony 3bc1cc248d chore: bump to msw v3 (#23463)
* chore: bump to msw v3

* refactor: anti-slop

* test: use vi.stubEnv for REDIS_URL in redis error test

* refactor: move remote debugging registration into a conditional block

* chore: add code coverage upload for github
2026-10-03 06:36:19 +08:00

18 lines
593 B
TypeScript

import tsconfigPaths from 'vite-tsconfig-paths';
import { configDefaults, defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [tsconfigPaths({ root: '.' })],
test: {
watch: false,
coverage: {
include: ['lib/**/*.ts', 'lib/**/*.tsx'],
exclude: ['lib/routes/**'],
reporter: ['text', 'html', 'clover', 'json', 'cobertura'],
},
testTimeout: 10000,
setupFiles: ['./lib/setup.test.ts'],
exclude: [...configDefaults.exclude, './lib/setup.test.ts', '**/*.worker.test.ts'],
},
});