Repository navigation
test(ui): type-check the Playwright specs in npm run check - #1993
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Nothing type-checked
ui/e2e. The tsconfig covered onlysrc,testandtests, and Playwright strips types without checking them, so a budget that left out a required limit passed silently.Changes
npm run checknow type-checks the Playwright specs and config, so CI's UI check covers them.killServertwice. The later one stays, since it also handles a child that already exited.not_run.DuckShop: no edge case. This changes test tooling, not a project shape.
Verification
npm run checkis clean on this branch with main merged in. It is also clean with the two open UI PRs' specs merged on top.e2e/group-run.spec.tsis reported, which shows the specs are checked.make check-cipassed on this head.