返回 AiToEarn
vitest.config.mts
根目录 / project / aitoearn-backend / apps / aitoearn-ai / vitest.config.mts
1 import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin'
2 import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'
3 import { defineConfig } from 'vitest/config'
4
5 export default defineConfig(() => ({
6 root: __dirname,
7 cacheDir: '../../node_modules/.vite/apps/aitoearn-ai',
8 plugins: [nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])],
9 test: {
10 name: 'aitoearn-ai',
11 watch: false,
12 globals: true,
13 environment: 'node',
14 include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
15 reporters: ['default'],
16 setupFiles: ['./test/setup.ts'],
17 coverage: {
18 reportsDirectory: '../../coverage/apps/aitoearn-ai',
19 provider: 'v8' as const,
20 },
21 },
22 }))
23
23 lines Plain Text