zoxknez-ai-coding-rules-testing-instructions.ocm.json json Copy{
"ocm": "1",
"id": "zoxknez-ai-coding-rules-testing-instructions",
"kind": "skill",
"name": "testing",
"description": "Follow MASTER_RULES.md.",
"publisher": "zoxknez",
"version": "1.0.0",
"capabilities": {
"domains": [
"general"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Follow MASTER_RULES.md."
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/zoxknez/ai-coding-rules",
"path": ".github/instructions/testing.instructions.md",
"ref": "8f37f1dc46f9c34791004e6e4ecbb2bf87b98ce6",
"url": "https://github.com/zoxknez/ai-coding-rules/blob/8f37f1dc46f9c34791004e6e4ecbb2bf87b98ce6/.github/instructions/testing.instructions.md",
"key": "zoxknez/ai-coding-rules/.github/instructions/testing.instructions.md"
},
"applies_to": "**/*.{test,spec}.{ts,tsx,js,jsx}"
},
"instructions": "Follow MASTER_RULES.md.\n\nTesting rules:\n- Use AAA pattern: Arrange → Act → Assert.\n- One assertion concept per test (multiple related expects OK).\n- Test behavior, not implementation details.\n- Mock external dependencies (APIs, DB), not internal modules.\n- Use descriptive test names: \"should [action] when [condition]\".\n- Prefer integration tests for critical paths.\n- Aim for >80% coverage on business logic, skip trivial getters/setters.\n- Clean up test data in afterEach/afterAll hooks.",
"cost": {
"context_tokens": 122
}
}