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

Update the new API to allow some suites to be sequential and others to be shuffle #5556

Closed
6 tasks done
JesusTheHun opened this issue Apr 16, 2024 · 1 comment
Closed
6 tasks done

Comments

@JesusTheHun
Copy link

Describe the bug

Chainable API like describe.shuffle() is deprecated.
There is no property shuffle in TestOptions to do that on a single suite so you have to use the new config introduced by #5281.
But now if you want to run some suite sequentially and use describe('my suite', { sequential: true }), it is ignored and the suite run shuffled.

Relates to #3922

Reproduction

https://stackblitz.com/edit/vitest-dev-vitest-c97uiy?file=test%2Fsequential.test.ts

System Info

Stackblitz

Used Package Manager

npm

Validations

@JesusTheHun JesusTheHun changed the title No way to make some suites sequential and others shuffle with new API Update the new API to allow some suites to be sequential and others to be shuffle Apr 16, 2024
@JesusTheHun
Copy link
Author

Nvm I went too fast. The chainable API is not deprecated, only the options are last arg

@github-actions github-actions bot locked and limited conversation to collaborators May 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant