-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
fix(runner): ensure sequential suite overrides sequence.concurrent #6653
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
fix(runner): ensure sequential suite overrides sequence.concurrent #6653
Conversation
eaced80 to
6c45eaa
Compare
|
Thanks for the PR! |
|
Yes, that looks correct. It looks like this option was removed in the v1 documentation (there was no such restriction in the v0 documentation when the test was added). Per your suggestion, I'll update this PR to remove the existing test and replace it with one in It looks like the existing test is the only usage of the |
Yeah, I think so. Can you confirm @sheremet-va? |
|
To me, this seems like a regression. The docs started mentioning it just for clarification purposes, the behaviour of |
|
Maybe this is because vitest/packages/runner/src/suite.ts Lines 208 to 212 in 7a0de0a
I think looking up |
✅ Deploy Preview for vitest-dev ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
0e83780 to
74c5f1e
Compare
|
Okay, that makes sense - in that case, I'll leave the type as it is and I've updated the PR to replace the existing test with a new test in |
hi-ogawa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, nice tests!
We can investigate vi.setConfig({ sequence }) separately. I'll create a new issue later.
##### [v2.1.3](https://github.com/vitest-dev/vitest/releases/tag/v2.1.3) ##### 🐞 Bug Fixes - Fix error diff of `toBeNaN, toBeUndefined, toBeNull, toBeTruthy, toBeFalsy` - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6697 [<samp>(e0027)</samp>](vitest-dev/vitest@e002758c) - **browser**: - Provide aria role intellisense - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6629 [<samp>(f36ea)</samp>](vitest-dev/vitest@f36eac77) - Not.toBeInTheDocument works with locators API - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6634 [<samp>(8bef5)</samp>](vitest-dev/vitest@8bef5d2b) - Use `/mockServiceWorker.js` instead of `/__vitest_msw__` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6687 [<samp>(4b2ce)</samp>](vitest-dev/vitest@4b2ce07f) - Don't override the esbuild option in the browser mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6692 [<samp>(d131f)</samp>](vitest-dev/vitest@d131fd64) - **expect**: - Preserve prototype in `toMatchObject` diff - by [@hi-ogawa](https://github.com/hi-ogawa) in
Description
Fixes #6652
Currently, when running Vitest with the
--sequence.concurrentCLI option or with thesequence.concurrentconfig option set to true,describe.sequentialhas no effect and tests run concurrently.This PR fixes the issue by ensuring that passing
{ concurrent: false }to the options of a suite does not only cancel the effect of passing{ concurrent: true }but causes{ sequential: true }to be set on the options, so that when the value ofoptions.sequentialis checked in the task function, it overrides the value specified in the runner config.The test that originally checked for this behaviour became invalid with changes to the runner in Vitest 2.0.0, so this PR also updates the test to correctly check for the behaviour in v2.0.0 onwards.
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yamlunless you introduce a new test example.Tests
pnpm test:ci.Documentation
pnpm run docscommand.Changesets
feat:,fix:,perf:,docs:, orchore:.