RSSHub/vitest.config.ts
2024-03-31 23:33:31 +08:00

17 lines
498 B
TypeScript

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