-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[Bug]: v30-alpha.5 TestPathPatterns pattern-match regression #15109
Comments
@SimenB any insight on this issue? |
@SimenB, sorry to ping you again. This issue has blocked the release of our |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
I've been investigating this issue further and it looks like the problem might be related to It seems that the current implementation only considers POSIX-style path patterns and might be missing Windows absolute path patterns, like This looks like a bug to me, cc @SimenB and @brandonchinn178 for insights and actions. |
It looks like the issue is line 79, right? It assumes an absolute path starts with a slash, but that's not true in Windows. Does look like a bug. Not sure what the correct fix is, I don't work with Windows paths too much. Should it also check for starting with Trying a quick fix here: #15235 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
30.0.0-alpha.5
Steps to reproduce
This can be demonstrated with jest's own
examples/getting-started
on a Window vscode powershell terminal:examples/getting-started
to a new folder outside of Jest, so we can change the jest version freely.getting-started
folderpackage.json
to change thejest
andbabel-jest
versions to30.0.0-alpha.5
Expected behavior
Expect this to work just like with jest 29.x.
Edit
package.jso
n to updatejest
andbabel-jest
to29.7.0
; runyarn install
then run the command again (replacing--TestPathPatterns
with--TestPathPattern
):Actual behavior
the pattern match failed so no test is run:
Additional context
Environment
The text was updated successfully, but these errors were encountered: