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
I was writing a utility to detect test files for various javascript test frameworks. Was trying to use the glob pattern mentioned here https://playwright.dev/docs/api/class-testconfig#test-config-test-match, but it seems the pattern **/*.@(spec|test).?(c|m)[jt]s?(x) is not matching the file paths like login-screen.wrong-credentials.spec.ts
Yes, this does certainly work, I see you have marked it as an enhancement. It will be great if extended globbing support is also added, sharing this popular library https://github.com/micromatch/extglob which has implemented this for js
It's not likely something I'd get in to doublestar any time soon, unfortunately... and it's a bit out-of-scope for what the library is trying to accomplish (which is just to implement **). But I keep a list of feature requests and if I ever find the time, I'll see what I can do.
I was writing a utility to detect test files for various javascript test frameworks. Was trying to use the glob pattern mentioned here
https://playwright.dev/docs/api/class-testconfig#test-config-test-match, but it seems the pattern
**/*.@(spec|test).?(c|m)[jt]s?(x)
is not matching the file paths likelogin-screen.wrong-credentials.spec.ts
I have also tried testing in this online tool, here the result passes
The text was updated successfully, but these errors were encountered: