| 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-server', |
| 8 | plugins: [nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])], |
| 9 | test: { |
| 10 | name: 'aitoearn-server', |
| 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 | coverage: { |
| 17 | reportsDirectory: '../../coverage/apps/aitoearn-server', |
| 18 | provider: 'v8' as const, |
| 19 | }, |
| 20 | }, |
| 21 | })) |
| 22 |