-
Notifications
You must be signed in to change notification settings - Fork 242
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
⬆️ upgrade vitest, @vitest/browser #365
Conversation
Thanks 🤯 |
If the demo app of |
@coyotte508, it does! :-) |
Sure! (if you can solve the TS problem, otherwise let's do it in another PR :) ) |
Back to vite 4 for widgets, there's no official vite 5 support in sveltekit yet |
Fixes #267
inference package used to substitute "process.env" with
process.env
contents invitest.config.ts
(usingdefine
), this is broken in more recent version of vitest: vitest-dev/vitest#3900.So the solution is to use
import.meta.env
. But since it passes through only vars with "VITE_" prefix,envPrefix
is needed include vars starting withHF_
andVCR_
.Additionally, moved
expect.closeTo()
to a separate file, it can be removed with update to vitest 1.0.