You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
🚀 Feature Proposal
Hi,
I would propose a new config parameter called
testIgnoreNamePattern
. It works similar to thetestNamePattern
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
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
variablePitch
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.
The text was updated successfully, but these errors were encountered: