mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-26 03:00:49 +08:00
* 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
18 lines
593 B
TypeScript
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'],
|
|
},
|
|
});
|