Skip to content

Commit 6f54691

Browse files
committed
fix(vitest): copy ts path resolver setup
1 parent 7cf2f13 commit 6f54691

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/vitest.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,12 @@ export function vitestConfig() {
77
watch: false,
88
exclude: ['.trunk', ...configDefaults.exclude],
99
},
10+
resolve: {
11+
alias: [
12+
// This is a bit odd because it's relative to CWD, not the
13+
// vitest.config.ts file, but we don't know that path.
14+
{ find: '@', replacement: 'src' },
15+
],
16+
},
1017
});
1118
}

0 commit comments

Comments
 (0)