Skip to content

TS error in defineConfig: 'test' does not exist in type 'UserConfigExport' #1106

Answered by james-elicx
misha-erm asked this question in Q&A
Discussion options

You must be logged in to vote

I had the same problem and defining it like this with an arrow function fixed the issue.

export default defineConfig(() => ({
  build: {
    // ...
  },
  test: {
    // ...
  },
}));

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@misha-erm
Comment options

@ferdicus
Comment options

@UsamaEjaz0
Comment options

@jeffvandyke
Comment options

Answer selected by misha-erm
Comment options

You must be logged in to vote
2 replies
@AntonOfTheWoods
Comment options

@maczyt
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants