katiem0-copilot-agentic-demos-testing-instructions.ocm.json json Copy{
"ocm": "1",
"id": "katiem0-copilot-agentic-demos-testing-instructions",
"kind": "skill",
"name": "testing",
"description": "Testing conventions",
"publisher": "katiem0",
"version": "1.0.0",
"capabilities": {
"domains": [
"general"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Testing conventions"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/katiem0/copilot-agentic-demos",
"path": ".github/instructions/testing.instructions.md",
"ref": "27495ca6dfb25c98bce8e554f9ef2b5b8589af17",
"url": "https://github.com/katiem0/copilot-agentic-demos/blob/27495ca6dfb25c98bce8e554f9ef2b5b8589af17/.github/instructions/testing.instructions.md",
"key": "katiem0/copilot-agentic-demos/.github/instructions/testing.instructions.md"
},
"applies_to": "**/*.test.ts"
},
"instructions": "# Testing conventions\n\n- Use Vitest (`describe` / `it` / `expect`) with globals enabled (see `vitest.config.ts`).\n- Treat `docs/DEMO-GUIDE.md` as the source of truth for expected pricing behavior.\n- Cover boundaries explicitly (e.g. a bulk-discount line of *exactly* the threshold quantity).\n- Assert money to the cent; use `toBeCloseTo(value, 2)` for currency comparisons.\n- Keep tests independent and behavior-focused; do not assert on internal implementation details.",
"cost": {
"context_tokens": 117
}
}