We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14411c7 commit 98be5cdCopy full SHA for 98be5cd
backend/vitest.config.ts
@@ -1,14 +1,17 @@
1
import { defineConfig } from 'vitest/config';
2
-import tsconfigPaths from 'vite-tsconfig-paths';
3
4
-export default defineConfig({
5
- plugins: [tsconfigPaths()],
6
- test: {
7
- globals: true,
8
- environment: 'node',
9
- include: ['**/*.spec.ts'],
10
- coverage: {
11
- reporter: ['text', 'json', 'html'],
+export default defineConfig(async () => {
+ const tsconfigPaths = (await import('vite-tsconfig-paths')).default;
+
+ return {
+ plugins: [tsconfigPaths()],
+ test: {
+ globals: true,
+ environment: 'node',
+ include: ['**/*.spec.ts'],
12
+ coverage: {
13
+ reporter: ['text', 'json', 'html'],
14
+ },
15
},
- },
-});
16
+ };
17
+});
0 commit comments