Write comprehensive backend tests including unit tests, integration tests, and API tests. Use when testing REST APIs, database operations, authentication flows, or business logic. Handles Jest, Pytest, Mocha, testing strategies, mocking, and test coverage.
79
71%
Does it follow best practices?
Impact
96%
1.21xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./.agent-skills/backend-testing/SKILL.mdJest test environment configuration
ts-jest preset
100%
100%
node test environment
100%
100%
roots in src
50%
100%
testMatch pattern
100%
100%
coverageThreshold at 80
0%
100%
setupFilesAfterEnv
16%
100%
beforeEach DB reset
0%
100%
afterEach DB rollback
0%
100%
afterAll connection close
0%
100%
env.test file
100%
100%
directory structure
62%
62%
test script
100%
100%
test:coverage script
100%
100%
test:ci script
50%
100%
Unit test mocking and isolation
Mock external API
100%
100%
Mock email service
100%
100%
Fake timers for expiry
80%
100%
AAA structure
75%
87%
Clear test names
100%
100%
Test isolation — beforeEach reset
100%
100%
Edge case coverage
100%
100%
No hardcoded secrets
100%
100%
Mock cleared after time test
100%
100%
Isolation from real DB
100%
100%
Mock called assertions
100%
100%
FastAPI integration and auth testing
In-memory SQLite
100%
100%
Dependency injection override
100%
100%
Override cleared after tests
100%
100%
Success status code 201
100%
100%
Failure status code 4xx
100%
100%
Response body structure check
100%
100%
DB state verification
100%
100%
401 without token
62%
75%
200 with valid token
100%
100%
Role-based 403
100%
100%
Error message validation
100%
100%
Async test functions
0%
0%
Function-scoped fixtures
70%
100%
c033769
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.