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]: Configuration parameter testIgnoreNamePattern #15548

Open
Pritoj opened this issue Mar 26, 2025 · 0 comments
Open

[Feature]: Configuration parameter testIgnoreNamePattern #15548

Pritoj opened this issue Mar 26, 2025 · 0 comments

Comments

@Pritoj
Copy link

Pritoj commented Mar 26, 2025

🚀 Feature Proposal

Hi,
I would propose a new config parameter called testIgnoreNamePattern. It works similar to the testNamePattern parameter but excludes tests cases which match.

Motivation

This will help ignore tests cases in certain CI scenarios from the environment variables etc.

Example

Assume test cases like

it("works all the time")
it("works some times")

My test command may look like IGNORE_NAME_PATTERNS="works some times" jest --testIgnoreNamePattern "$IGNORE_NAME_PATTERNS"

Once the test is fixed I can just update the IGNORE_NAME_PATTERNS variable

Pitch

This helps teams better filter out the test cases they may want to skip. It would be trivial to extend the skip command to check if such a pattern is matched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant