Skip to content

Commit 0886501

Browse files
committed
Revert "refactor: convert vitest.config to async configuration loading"
This reverts commit 98be5cd.
1 parent 6ab76aa commit 0886501

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

backend/vitest.config.ts

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
import { defineConfig } from 'vitest/config';
2+
import tsconfigPaths from 'vite-tsconfig-paths';
23

3-
export default defineConfig(async () => {
4-
const tsconfigPaths = (await import('vite-tsconfig-paths')).default;
5-
6-
return {
7-
plugins: [tsconfigPaths()],
8-
test: {
9-
globals: true,
10-
environment: 'node',
11-
include: ['**/*.spec.ts'],
12-
coverage: {
13-
reporter: ['text', 'json', 'html'],
14-
},
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'],
1512
},
16-
};
17-
});
13+
},
14+
});

0 commit comments

Comments
 (0)