返回 AiToEarn
vitest.config.ts
根目录 / project / aitoearn-electron / vitest.config.ts
1 import { defineConfig } from 'vitest/config';
2
3 export default defineConfig({
4 test: {
5 root: __dirname,
6 include: [
7 'test/**/*.{test,spec}.?(c|m)[jt]s?(x)',
8 'electron/**/__tests__/**/*.{test,spec}.?(c|m)[jt]s?(x)',
9 'electron/**/*.{test,spec}.?(c|m)[jt]s?(x)'
10 ],
11 testTimeout: 1000 * 29,
12 environment: 'node',
13 },
14 })
15
15 lines TYPESCRIPT