Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update defineConfig to be imported from vitest #919

Merged
merged 3 commits into from
Mar 10, 2022

Conversation

wael-fadlallah
Copy link
Contributor

When I import the defineConfig from Vite it doesn't except test as an argument and I got the bellow error.

Argument of type '{ plugins: any[]; test: {}; }' is not assignable to parameter of type 'UserConfigExport'.
  Object literal may only specify known properties, and 'test' does not exist in type 'UserConfigExport'

I don't know why this is happens but I manged to get it to work by changing the import library to vitest/config

When I import the defineConfig from Vite it doesn't except test as an argument  
```
Argument of type '{ plugins: any[]; test: {}; }' is not assignable to parameter of type 'UserConfigExport'.
  Object literal may only specify known properties, and 'test' does not exist in type 'UserConfigExport'
```
@netlify
Copy link

netlify bot commented Mar 10, 2022

✔️ Deploy Preview for vitest-dev ready!

🔨 Explore the source changes: bbb421e

🔍 Inspect the deploy log: https://app.netlify.com/sites/vitest-dev/deploys/6229e1bbc4ada60009ec9b5a

😎 Browse the preview: https://deploy-preview-919--vitest-dev.netlify.app

@antfu antfu changed the title update defineConfig to be imported from vitest chore: update defineConfig to be imported from vitest Mar 10, 2022
@antfu antfu merged commit d318252 into vitest-dev:main Mar 10, 2022
@wael-fadlallah wael-fadlallah deleted the patch-1 branch March 11, 2022 05:54
chaii3 pushed a commit to chaii3/vitest that referenced this pull request May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants