Files
RSSHub/vitest.config.ts
T
DIYgod cf4e772de8 refactor: replace art template with jsx (#20777)
* refactor: replace art template with jsx

* fix: tsx files

* fix: renderToString import

* fix: hono html raw import

* feat: remove art
2025-12-29 12:27:32 +08:00

23 lines
757 B
TypeScript

import os from 'node:os';
import path from 'node:path';
import process from 'node:process';
import tsconfigPaths from 'vite-tsconfig-paths';
import { configDefaults, defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [tsconfigPaths()],
test: {
watch: false,
coverage: {
include: ['lib/**/*.ts', 'lib/**/*.tsx'],
exclude: ['lib/routes/**', 'lib/routes-deprecated/**'],
},
testTimeout: 10000,
setupFiles: ['./lib/setup.test.ts'],
exclude: [...configDefaults.exclude, './lib/setup.test.ts'],
// TODO: workaround for node 25.2
execArgv: ['--localstorage-file', path.resolve(os.tmpdir(), `vitest-${process.pid}.localstorage`)],
},
});