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

Support new jest --randomize flag #17115

Closed
1 task
mcmxcdev opened this issue May 19, 2023 · 2 comments · Fixed by #17148
Closed
1 task

Support new jest --randomize flag #17115

mcmxcdev opened this issue May 19, 2023 · 2 comments · Fixed by #17148
Assignees
Labels
outdated scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx type: feature

Comments

@mcmxcdev
Copy link

Description

https://github.com/jestjs/jest/releases/tag/v29.5.0 introduced a new --randomize flag for test suites, see jestjs/jest#4386 and https://jestjs.io/docs/cli#--randomize

It would be great if Nx could provide the option to pass this flag to the @nx/jest executor.

Motivation

We would love to be able to use this flag to make our tests stricter and ensure they work correctly independent of order.

@AgentEnder AgentEnder added the scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx label May 20, 2023
@barbados-clemens barbados-clemens self-assigned this May 22, 2023
@barbados-clemens
Copy link
Contributor

Thanks @mcmxcdev I missed that in the changelog.

curious if it works now though bc we pass all extra args to jest 🤔 (though I will had it to the schema to make sure since it's an official option).

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx type: feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants