-
-
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
Vitest 1.0 Roadmap #3596
Comments
Will browser mode get stable with this release? |
I think this links to the wrong issue?
We're evaluating using vitest browser in this branch, some feedback:
And maybe more, please feel free to checkout our branch and try it for yourself. |
Are you sure it is connected to the optimizer?
This is a known issue. The fix in the plugin is already merged, but new version is not released yet.
Thank you, I updated the issue.
And it won't be. "environment" is a feature not supported in browser mode. Browser mode is a runner. Current recommendation is to use it with inline workspace project.
This is something which will be discussed separately, we support different providers with different browser/page contexts, so it's a bit tricky.
Feel free to open a separate issue for this. Overall, browser support is not stable and it's considered experimental. I don't think it will be stable enough for the release, but it would be nice to at least reduce flakiness.
There is an option |
It happens with experimentalOptimizer: { web: { enabled: true } } but not with experimentalOptimizer: { web: { enabled: false } } 🤷♂️
That's great to hear, thanks.
We'll take a look, thanks! |
@jd-solanki It should be improved: |
@jd-solanki I don't think so, I have so many things to do with @userquin on the browser mode, so many ideas and solutions that need to be experimented with properly. But soon after we get the iframes feature done, we get more chances to experiment with stuff, because many of the ideas depend on this mode which is not merged yet. The current browser DX is not the perfect thing we can get to, there are many things that that need to be improved. |
@sheremet-va it could be nice to include this old and unfinished PR #2827 to get
|
Can #2334 be looked at to support async event listeners so we can properly close node servers during HMR? |
Vitest 1.0 is going to be released on December 4th. The biggest user-facing change is the formatting of snapshots (#3961). There will be a migration guide from 0.34.x to 1.0. We are planning to follow SemVer strictly so it is possible that 2.0 will be released soon after if there is an urgent breaking change that needs to be made. (Note: experimental API does not follow SemVer - this includes the public |
Great news! Thanks for the update |
Good news. However, what's the plan with vitejs/vite#12165 ? It seems to be postponed now. |
JSDOM v23 also just came out, which dropped Node 16, it's probably better to update it in Vitest before the 1.0 release, Vitest still references v22 vitest/packages/vitest/package.json Line 183 in ca87027
@GuskiS last month it was mentioned in one of the PR where I asked about
@sheremet-va replied
|
1.0 is published:
If you have any issues, please refer to the migration guide first. If you still have problems, open a separate issue. |
Good day everyone 👋🏻
First of all, I wanted to say thank you to everyone who contributed to this project (we have 325 contributors!) for the past year and a half. We wouldn't be where we are today without your support!
The Vitest team announces that we are planning to do the first official stable release alongside Vite 5. To accomplish this goal, we need to close some of the longstanding issues. Here is a list of things that in my opinion should be closed before we can say Vitest is stable:
deps.inline
/deps.external
/deps.registerNodeLoader
. Users should enabledeps.optimizer
instead to better align with how Vite processes dependencies. This should help Vitest work out of the box for many libraries and frameworks that rely onoptimizeDeps
.server
option to pass down options for Vite Node instead ofdeps.inline
/deps.exclude
#3522deps.optimizer
#3523deps.optimizer
#3524feat: experimental Vite Runtime API vitejs/vite#12165(postponed)ecosystem-ci
for Vitest #3595@vitest/utils
. Reduce test flakiness.vitest typecheck
together with normal test in onewatch
#2299exports
/module
/__filename
/__dirname
, throw error on invalid ESM/CJS file)The Vitest team will prioritize these tasks over other enhancements. This means we will postpone adding new features until Vitest 1.0 is released.
One thing that should be mentioned is that Vitest 1.0 release will drop support for Vite 4 and Vite 3 since it relies on
optimizeDeps
havingnoDiscovery
option. This also means Vitest will not support Node.js 16 anymore.The text was updated successfully, but these errors were encountered: