Add Claude agents and review-and-commit skill
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
11
.claude/agents/testing-mocks.md
Normal file
11
.claude/agents/testing-mocks.md
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
description: Preferences for testing and mocks
|
||||
globs: ["**/*_test.go", "e2e/**/*.go"]
|
||||
---
|
||||
|
||||
# Testing Mocks
|
||||
|
||||
When writing or updating tests:
|
||||
- Always prefer real code, a local version of a server (like `httptest`), etc., to static mocks.
|
||||
- Prefer dependency injection if useful for testing.
|
||||
- A mock implementation should be the absolute last resort.
|
||||
Reference in New Issue
Block a user