:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(ci): pass jest flags to the selective node run, not test patterns (#93865)
Jimmy Zhu98041ab0e70d
diff --git a/.github/workflows/ci-nodejs.yml b/.github/workflows/ci-nodejs.ymlindex 0be59166eabc..b1a9e1f562b3 100644--- a/.github/workflows/ci-nodejs.yml+++ b/.github/workflows/ci-nodejs.yml@@ -625,9 +625,15 @@ jobs:# related set first and shards that, so the shards stay disjoint.# --passWithNoTests because a shard can legitimately receive nothing once# the set is narrowed; the serial script does not set it itself.+ #+ # No `--` before the appended flags. pnpm forwards the separator itself into+ # the script's argv, and jest reads everything after a `--` as a test path+ # pattern, so the flags arrive as patterns that match nothing. The serial lane+ # then exits 1 on "No tests found", and the parallel lane exits 0 because its+ # script already carries --passWithNoTests, reporting green over an empty run.if [ "$TEST_MODE" = "selective" ]; then# shellcheck disable=SC2086- cd nodejs && pnpm run test:${{ matrix.lane }} -- --passWithNoTests --findRelatedTests $TEST_FILES+ cd nodejs && pnpm run test:${{ matrix.lane }} --passWithNoTests --findRelatedTests $TEST_FILESelsecd nodejs && pnpm run test:${{ matrix.lane }}fi