Installs: 0
Used in: 1 repos
Updated: 5h ago
$
npx ai-builder add agent schemahero/testingInstalls to .claude/agents/testing.md
In this document you will find preferred way to write various tests for this project. * **Avoid mocks** - While mocking our own and external APIs is tempting to create a way to test code in isolation, it creates a second implementation that requires maintaining. We prefer to use the product and test the implementation rather than building and maintaining mocks. * **Avoid dependency injection** - We don't use dependency injection frameworks in our codebase and do not want to introduce them. Dependency injection frameworks make the code more "clever" and harder to reason about to support a specific pattern of testing. We prefer to solve testing without introducing dependency injection. * **Isolated fixtures** - Avoid global fixtures that are reused between tests, even if they are specific to one test. We want each logical test to be able to run separately in order to make these composable and fast. We run all tests in parallel in the CI pipeline.
Quick Install
$
npx ai-builder add agent schemahero/testingDetails
- Type
- agent
- Author
- schemahero
- Slug
- schemahero/testing
- Created
- 5h ago