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
{{ message }}
Repository navigation
Test discovery: +, $ and ^ in a glob are read as regex operators #247
globToRegex in src/repo/test-discovery.ts escapes only \ and ., so +, $ and ^ reach RegExp as operators. These globs come from declared inputs and runner configs.
Repro:
A declared input { "paths": ["app/routes/users.$id.tsx"], "tests": [...] }: changing app/routes/users.$id.tsx does not select the declared tests.
app/routes/_auth+/** (remix-flat-routes folders) does not match app/routes/_auth+/login.tsx.
c++/** throws Invalid regular expression: Nothing to repeat.
A bare ** matches only top-level paths.
Expected: these characters match themselves and ** matches every path, as in picomatch. Classes such as [^b], groups and extglobs keep working.
Actual: as above.
The same class of bug in other copies of the converter: #173 (planner, PR #174) and #178 (research matcher, PR #179). This issue is the test-discovery.ts copy, which neither PR changes.
Activity