Repository navigation
ci: lint TWD tests with twd-lint - #1
Merged
Merged
Conversation
✅ TWD: 4 passed
1 contract warning
|
Adds twd-lint and a lint:twd script, and runs it in CI right after npm ci, so a broken TWD test fails in seconds instead of in the browser run. The existing tests already pass it.
kevinccbsg
force-pushed
the
chore/twd-lint
branch
from
October 18, 2026 21:29
4ec4732 to
43c616b
Compare
✅ TWD: 4 passed
1 contract warning
|
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.
What
Lints the TWD tests with twd-lint, which catches TWD test mistakes before a browser run: missing
awaits on async TWD calls,describe/it/expectimported from the wrong module,rule.request.bodyon awaitForRequestresult, and.onlyleft behind.twd-lintadded as a devDependency, with alint:twdscript (npm run lint:twd). This project has no ESLint, and the command needs none.npm ci, before the mock API and dev server start, so a broken test fails in seconds instead of in the browser run.Checked
npm run lint:twdpasses: the existing TWD tests already have no problems.npm cipasses with the latest npm (12.x). npm 11.6 drops two nested@emnapientries of the optional@tailwindcss/oxide-wasm32-wasiwhen it rewrites the lockfile, and newer npm refusesnpm ciwithout them, so they are kept as onmain.🤖 Generated with Claude Code