Installs into .claude/skills of the current project.
Are you the author of Testing Patterns Grmkris?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/diegosouzapw-testing-patterns-grmkris)
---
name: testing-patterns
description: Testing patterns using bun:test with in-memory SQLite. Use when writing unit tests, integration tests, or router tests.
globs:
- src/**/*.test.ts
- src/**/*.spec.ts
- src/test/**/*.ts
alwaysApply: false
---
# Testing Patterns
Use these patterns for writing tests with bun:test and in-memory SQLite.
## When to Use
- Writing unit tests for business logic
- Testing ORPC router handlers
- Integration testing with database
## Key Files
- `src/test/setup.ts` - Test infrastructure (createTestSetup, createTestContext)
- `src/test/helpers.ts` - Test helper functions
## Pattern Files
- [setup.md](setup.md) - Test setup and infrastructure
- [helpers.md](helpers.md) - Test helper patterns