Skip to content

Commit

Permalink
fix: change Vite root, if test.root is used (#2637)
Browse files Browse the repository at this point in the history
* fix: change Vite root, if test.root is used

* chore: cleanup
  • Loading branch information
sheremet-va authored Jan 10, 2023
1 parent 0163dc8 commit efbff2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vitest/src/node/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export async function VitestPlugin(options: UserConfig = {}, ctx = new Vitest('t
open = '/'

const config: ViteConfig = {
root: viteConfig.test?.root || options.root,
esbuild: {
sourcemap: 'external',

Expand Down

0 comments on commit efbff2a

Please sign in to comment.