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

Feature: Add --listTests flag from Jest #521

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

kaelig
Copy link
Contributor

@kaelig kaelig commented Dec 7, 2024

What I did

Closes #328

Unlocks the ability to only rerun failing tests in CI (in my case, CircleCI) instead of having to rerun the entire test suite. Useful when there are flakey tests.

Checklist for Contributors

Manual testing

This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!

Documentation

  • Add or update documentation reflecting your changes in this repository
  • Request documentation updates in the test-runner docs website

Checklist for Maintainers

  • Make sure this PR contains one of the labels below:

    Available labels
    • skip-release: Skip any releases, e.g., documentation only changes, CI config etc.
    • patch: Upgrade patch version (e.g. 0.0.x)
    • minor: Upgrade patch version (e.g. 0.x.0)
    • major: Upgrade patch version (e.g. x.0.0)

@kaelig
Copy link
Contributor Author

kaelig commented Dec 7, 2024

I'm actually not sure what changes are required for this to work, I'll try to test locally.

Guidance appreciated!

Edit: confirming it works and outputs all the files in the standard output.

@yannbf yannbf added the minor Increment the minor version when merged label Dec 19, 2024
@yannbf yannbf changed the title Add listTests flag from Jest Feature: Add --listTests flag from Jest Dec 19, 2024
Copy link
Member

@yannbf yannbf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great contribution, thank you!

@yannbf yannbf merged commit b21c854 into storybookjs:next Dec 19, 2024
6 of 7 checks passed
@yannbf yannbf mentioned this pull request Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature request] Would it be possible to support the --listTests CLI flag?
2 participants