-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
How to disable Pre-transform error log? #7345
Comments
This might be Vite 6's bug or Vitest 3's Vite 6 compat bug. Vitest has been using
https://stackblitz.com/edit/bolt-vue-stgk6ecc?file=vitest.config.ts // TODO: Vite bug? probably this is supposed to work
// server: {
// preTransformRequests: false,
// },
environments: {
client: {
dev: {
preTransformRequests: false,
},
},
}, |
this is a good solution, but what if in some tests i need to use jsdom? |
@AlexKFU It should be fine to keep |
thx a lot!:) |
Discussed in #7344
Originally posted by AlexKFU January 23, 2025
Hello! I have a monorepo project. In this monorepo i have a ui lib(jit package). Ui entrypoint looks like
And i try mocking my library in test:
i've got error in console
In vitest 2+ version i havent this error. For fix i can use vitejs/vue-plugin or direct import for my ui kit. But its strange and cant explain this behavior. Can i disable this log? Because the tests are actually passing.
Its my reproduce
you need to upgrade the vitest version in package json and you'll see error
Reproduction
https://stackblitz.com/edit/bolt-vue-wq7h39jr?file=vitest.config.ts
System Info
System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 18.20.3 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.2.3 - /usr/local/bin/npm pnpm: 8.15.6 - /usr/local/bin/pnpm npmPackages: vitest: 3.0.3 => 3.0.3
The text was updated successfully, but these errors were encountered: