Skip to content

test(ui): type-check the Playwright specs in npm run check - #1993

Merged
chio-labs-delivery[bot] merged 2 commits into
mainfrom
test/e2e-typecheck
Dec 6, 2026
Merged

chio-labs-delivery[bot] merged 2 commits into
mainfrom
test/e2e-typecheck

Conversation

@kvlonge

@kvlonge kvlonge commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

Why

Nothing type-checked ui/e2e. The tsconfig covered only src, test and tests, and Playwright strips types without checking them, so a budget that left out a required limit passed silently.

Changes

  • npm run check now type-checks the Playwright specs and config, so CI's UI check covers them.
  • Fixed the 8 errors it found:
    • The real-server harness defined killServer twice. The later one stays, since it also handles a child that already exited.
    • The fake control's node states now include not_run.
    • A run version that is still null before a restart now fails, instead of comparing as 0.
    • Four typings.

DuckShop: no edge case. This changes test tooling, not a project shape.

Verification

  • npm run check is clean on this branch with main merged in. It is also clean with the two open UI PRs' specs merged on top.
  • A type error planted in e2e/group-run.spec.ts is reported, which shows the specs are checked.
  • make check-ci passed on this head.

Nothing type-checked ui/e2e: the tsconfig covers only src, test and tests,
and Playwright strips types without checking them. A budget that left out
a required limit passed silently. npm run check now includes e2e and the
Playwright config, and the 8 errors it found are fixed: a duplicate
killServer in the real-server harness (the later one, which also handles a
child that already exited, stays), the fake's node states now include
not_run, a null run version before a restart now fails instead of comparing
as 0, and four typings.
@chio-labs-delivery
chio-labs-delivery Bot added this pull request to the merge queue Dec 6, 2026
Merged via the queue into main with commit 266a073 Dec 6, 2026
38 checks passed
@chio-labs-delivery
chio-labs-delivery Bot deleted the test/e2e-typecheck branch December 6, 2026 18:39
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