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

import defineConfig from vitest/config #320

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nicehatharry
Copy link

The defineConfig function from vite is not type aware of the 'test' parameter. Importing defineConfig from 'vitest/config' fixes.

The defineConfig function from vite is not type aware of the 'test' parameter. Importing defineConfig from 'vitest/config' fixes.
@jan-gebauer
Copy link

+1

I got stuck on this as well this morning. I ended up creating vitest.config.ts. I am not sure, which is better because Vitest touts the common config as a feature but VSCode does not offer an import of defineConfig from vitest/config. I suspect the real problem lies with Vite.

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.

2 participants