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
{
"instruction": "Isolate test database from production database without mocking",
"relevant_when": "Agent configures test database setup",
"context": "Tests should use a separate database (in-memory SQLite with :memory:) or reset state before each test. Never mock the database module (no vi.mock or jest.mock of the db module). Use the real database module with test-specific configuration.",
"sources": [
{
"type": "file",
"filename": "skills/api-testing-first-steps/SKILL.md",
"tile": "tessl-labs/api-testing-first-steps@0.1.0"
}
],
"checklist": [
{
"name": "separate-test-db",
"rule": "Agent uses :memory: SQLite or a separate test database for tests, conditional on NODE_ENV === 'test'",
"relevant_when": "Agent configures database for testing"
},
{
"name": "reset-before-tests",
"rule": "Agent resets or cleans database state before each test (beforeEach/beforeAll with schema recreation or transaction BEGIN/ROLLBACK)",
"relevant_when": "Agent writes test setup"
},
{
"name": "no-database-mock",
"rule": "Agent does NOT mock or stub the database module (no vi.mock, jest.mock, or manual stubs). Uses the real database module with test configuration.",
"relevant_when": "Agent writes API integration tests with database"
}
]
}