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: a renamed from-source-only describe drops out of CI without failing #389
Two e2e describes skip when PATCHBOOK_CMD is set, because they need the TypeScript source:
"init stopped by a preload, so only from source" in test/e2e/clone-init.test.ts, with 8 tests;
"killed by a preload, so only from source" inside VendorTest in test/e2e/vendor.test.ts, with 4 tests.
CI runs e2e against the binary, so these 12 tests run only in the rest shard's from-source step. That step selects them by name with --test-name-pattern "so only from source".
The step fails only when the pattern matches no test at all. Rename one of the describes so its title no longer holds that phrase, and its tests skip in every binary run and are never selected from source. CI stays green.
Steps
From source, at b47f511:
bun test --parallel test/e2e/*.test.ts --test-name-pattern "init stopped by a preload, so only from source"
This exits 0 with 8 tests. It stands in for the case where the VendorTest describe was renamed and its 4 tests dropped out. A pattern that matches nothing does exit 1.
Expected
A describe that skips under PATCHBOOK_CMD always runs somewhere in CI, whatever its title. One way is to declare these describes through one helper in test/e2e-fixtures.ts that adds the phrase to the title, so the name and the skip can't drift apart.
Activity