Get test coverage on an Express/Node API fast — the first 5 tests that catch
94
90%
Does it follow best practices?
Impact
100%
1.26xAverage score across 5 eval scenarios
Passed
No known issues
PATCH routes and query parameter testing
PATCH creates resource first
100%
100%
PATCH verifies updated value
100%
100%
PATCH rejects invalid status
100%
100%
query filter test exists
100%
100%
query filter verifies all results
50%
100%
supertest used
100%
100%
Error format consistency testing
tests multiple error types
100%
100%
error.message checked
0%
100%
consistent shape assertion
75%
100%
supertest usage
100%
100%
error-format-spec created
100%
100%
no Express internals tested
0%
100%
Test prioritization for existing project
vitest installed
100%
100%
supertest installed
100%
100%
test script is vitest run
100%
100%
test:coverage script
0%
100%
app exported
100%
100%
conditional listen
100%
100%
5 tests or fewer
0%
100%
tests subscriptions route
100%
100%
happy path test
100%
100%
validation test
100%
100%
404 test
100%
100%
state-focused rationale
60%
100%
deliberate scope limit documented
100%
100%
no private function tests
100%
100%
All three npm test scripts
test:coverage script
100%
100%
test:watch script
100%
100%
test script
100%
100%
vitest installed
100%
100%
supertest installed
100%
100%
vitest globals enabled
100%
100%
vitest node environment
100%
100%
conditional listen
100%
100%
app exported
100%
100%
in-memory SQLite
100%
100%
no database mock
100%
100%
beforeEach reset
100%
100%
supertest usage
100%
100%
5 or fewer tests
0%
100%
High-churn route prioritization
High-churn route tested
100%
100%
Strategy: git history rationale
100%
100%
Strategy: state/money routes prioritized
100%
100%
Strategy: deliberate exclusions named
100%
100%
Strategy: no 100% coverage goal
37%
100%
Strategy: approach documented
75%
100%
5 or fewer tests
0%
100%
test:coverage script
0%
100%
test:watch script
100%
100%
Conditional listen
100%
100%
In-memory SQLite
100%
100%
No database mock
100%
100%