e91ab573 days ago13 lines · 405 B| 1 | import { defineConfig } from 'vitest/config'; |
| 2 | import tsconfigPaths from 'vite-tsconfig-paths |
| 3 | |
| 4 | export default defineConfig({ |
| 5 | // Resolves the path aliases declared in tsconfig.json, including the ones added by `nest g library`. |
| 6 | plugins: [tsconfigPaths()], |
| 7 | test: { |
| 8 | globals: true, |
| 9 | root: './', |
| 10 | include: ['**/*.spec.ts', |
| 11 | globalSetup: ['./test/unit-setup.ts'], |
| 12 | }, |
| 13 | }); |