Skip to content

No dir property in UserConfigExport #6790

Answered by hi-ogawa
crs1138 asked this question in Q&A
Discussion options

You must be logged in to vote

While root is Vite option, dir is Vitest option, so it should look like this
https://stackblitz.com/edit/vitest-dev-vitest-wq8au2?file=vite.config.ts

export default defineConfig({
  // [not here]
  // dir: "src"

  test: {
    // [but here]
    dir: 'src',
  },
});

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by crs1138
Comment options

You must be logged in to vote
1 reply
@crs1138
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants