返回 AiToEarn
vitest.config.mts
根目录 / project / aitoearn-backend / libs / config-editor / 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/libs/config-editor',
8 plugins: [nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])],
9 test: {
10 name: 'config-editor',
11 watch: false,
12 globals: true,
13 environment: 'node',
14 include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts}'],
15 reporters: ['default'],
16 coverage: {
17 reportsDirectory: '../../coverage/libs/config-editor',
18 provider: 'v8' as const,
19 },
20 },
21 }))
22
22 lines Plain Text