-
Notifications
You must be signed in to change notification settings - Fork 93
Adding support for jest 30 testNamePatterns (plural) option #790
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
Conversation
| /** | ||
| * Compatible with jest 30+ only | ||
| */ | ||
| testPathPatterns?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the type an array or a string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok so from the documentation I also see that they define the property as a regex expression:
https://jestjs.io/docs/cli#--testpathpatternsregex
So I believe using string is the right type based on that.

Overview
Addresses #772 by adding the testPathPatterns (plural) as a valid arguments option. This makes just compatible with jest 30 which updated testPathPattern to be testPathPatterns
Test Notes
Ran yarn test.