Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
Instruction file imported from almai/.github (.github/instructions/tests.instructions.md). Copyright stays with the author.
Test file rules
Use Vitest (describe, it, expect) — not Jest globals unless the project uses Jest.
Each it block tests exactly one behaviour. One assertion focus per test.
Test names are full sentences: it('returns null when user is not found').
Mock all I/O and external dependencies — no real network calls or file system writes in unit tests.
Use vi.mock() at the top of the file for module mocks; prefer vi.spyOn() for partial mocks.
Clean up mocks in afterEach(() => vi.restoreAllMocks()).
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
yaml
targets:
- https://api.opensmartroute.ai/api/v1/registry/almai-github-tests-instructions/manifest # or paste the manifest below
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
almai-github-tests-instructions.ocm.jsonjson
{
"ocm": "1",
"id": "almai-github-tests-instructions",
"kind": "skill",
"name": "tests",
"description": "Test file rules",
"publisher": "almai",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Test file rules"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/almai/.github",
"path": ".github/instructions/tests.instructions.md",
"ref": "3b1fb15e9709f78ce3bc7ca1f6e4f8a2a5db1c53",
"url": "https://github.com/almai/.github/blob/3b1fb15e9709f78ce3bc7ca1f6e4f8a2a5db1c53/.github/instructions/tests.instructions.md",
"key": "almai/.github/.github/instructions/tests.instructions.md"
},
"applies_to": "**/*.test.ts,**/*.test.tsx,**/*.spec.ts"
},
"instructions": "## Test file rules\n\n- Use Vitest (`describe`, `it`, `expect`) — not Jest globals unless the project uses Jest.\n- Each `it` block tests exactly one behaviour. One assertion focus per test.\n- Test names are full sentences: `it('returns null when user is not found')`.\n- Mock all I/O and external dependencies — no real network calls or file system writes in unit tests.\n- Use `vi.mock()` at the top of the file for module mocks; prefer `vi.spyOn()` for partial mocks.\n- Clean up mocks in `afterEach(() => vi.restoreAllMocks())`.",
"cost": {
"context_tokens": 131
}
}
Fetch it by URL: GET /api/v1/registry/almai-github-tests-instructions/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.