Skip to content

test(repro): make repro-flow-execute self-contained#38

Merged
PhucHai123 merged 1 commit into
mainfrom
fix/repro-test-self-contained
Jun 30, 2026
Merged

test(repro): make repro-flow-execute self-contained#38
PhucHai123 merged 1 commit into
mainfrom
fix/repro-test-self-contained

Conversation

@PhucHai123

Copy link
Copy Markdown
Collaborator

Problem

#37 skipped tests/repro-flow-execute.test.ts when its local session fixture was absent. That fixed CI, but it also meant the repro test was never exercised in CI — it only ran on the one machine that still had the original fixture.

Fix

Replace the skip with a self-contained in-memory default session. The test now:

  • loads the original fixture when PI_REPRO_SESSION points at an existing file, and
  • falls back to a minimal generated session otherwise.

This keeps the repro runnable in CI while preserving the ability to replay the original captured session locally.

Verification

  • npm test — 1916 passed, 0 skipped (the repro test now runs and passes with the default session).
  • npx vitest run tests/repro-flow-execute.test.ts passes.

Scope

This is a follow-up to #37. It supersedes the skip by making the test self-contained.

Replace the skip-when-missing fix with an in-memory default session
fallback. The repro test now runs in CI instead of being skipped,
while still using the original fixture when PI_REPRO_SESSION points
at an existing file.
@PhucHai123 PhucHai123 merged commit fe48ae6 into main Jun 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant