Skip to content

Commit efbff2a

Browse files
authoredJan 10, 2023
fix: change Vite root, if test.root is used (#2637)
* fix: change Vite root, if test.root is used * chore: cleanup
1 parent 0163dc8 commit efbff2a

File tree

1 file changed

+1
-0
lines changed
  • packages/vitest/src/node/plugins

1 file changed

+1
-0
lines changed
 

‎packages/vitest/src/node/plugins/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export async function VitestPlugin(options: UserConfig = {}, ctx = new Vitest('t
9090
open = '/'
9191

9292
const config: ViteConfig = {
93+
root: viteConfig.test?.root || options.root,
9394
esbuild: {
9495
sourcemap: 'external',
9596

0 commit comments

Comments
 (0)
Please sign in to comment.