Skip to content

Commit 952a024

Browse files
committed
fix unit test pattern matching e2e tests in CI
The regex `functions/.+/__tests__` matched e2e test files because `.+` crosses path separators — `functions/` matched inside the parent dir `constructive-functions/`. Changed to `[^/]+` to prevent this.
1 parent 05747e1 commit 952a024

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"dev:fn": "node --experimental-strip-types scripts/dev.ts",
2727
"dev:down": "docker compose down",
2828
"test": "jest",
29-
"test:unit": "jest --testPathPatterns='functions/.+/__tests__'",
29+
"test:unit": "jest --testPathPatterns='functions/[^/]+/__tests__'",
3030
"test:integration": "jest --testPathPatterns='tests/integration'",
3131
"test:e2e": "jest --testPathPatterns='tests/e2e'"
3232
},

0 commit comments

Comments
 (0)