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 different location to prevent vitest from complaining #120

Open
Soviut opened this issue May 5, 2024 · 1 comment

Comments

@Soviut
Copy link
Owner

Soviut commented May 5, 2024

To prevent the vite.config.mts from complaining about the test param, we need to change the following

import { defineConfig } from 'vite';

do this (importing Vite config extended by Vitest):

import { defineConfig } from 'vitest/config';

https://stackoverflow.com/questions/72146352/vitest-defineconfig-test-does-not-exist-in-type-userconfigexport

@Soviut
Copy link
Owner Author

Soviut commented Sep 27, 2024

This doesn't seem to be happening anymore?

@Soviut Soviut changed the title Import defineConfig from Import defineConfig from different location to prevent vitest from complaining Sep 27, 2024
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

No branches or pull requests

1 participant