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.
tests - Skill - OpenSmartRoute
Skillv1.0.0
tests
Always import `store` from `../src/store` and call `store.reset()` in `beforeEach()`. - Use `describe` blocks that mirror the route they test: `describe("GET /tasks/:id", ...)`. - Name each test: `"re
{
"ocm": "1",
"id": "pengbin2015-nus-iss-taskboard-day2-tests-instructions",
"kind": "skill",
"name": "tests",
"description": "Always import `store` from `../src/store` and call `store.reset()` in `beforeEach()`. - Use `describe` blocks that mirror the route they test: `describe(\"GET /tasks/:id\", ...)`. - Name each test: `\"returns X when Y\"` — one focused assertion per test where possible. - Use Vitest (`import { describe, it, expect, beforeEach } from \"vitest\"`), not Jest. - Use Supertest against `createApp()` — never spin up a real server.",
"publisher": "pengbin2015",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Always import `store` from `../src/store` and call `store.reset()` in `beforeEach()`. - Use `describe` blocks that mirror the route they test: `describe(\"GET /tasks/:id\", ...)`. - Name each test: `\"returns X when Y\"` — one focused assertion per test where possible. - Use Vitest (`import { describe, it, expect, beforeEach } from \"vitest\"`), not Jest. - Use Supertest against `createApp()` — never spin up a real server."
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/pengbin2015/nus-iss-taskboard-day2",
"path": ".github/instructions/tests.instructions.md",
"ref": "7b76e987ef8738abfa708990256b8a7d699b73f2",
"url": "https://github.com/pengbin2015/nus-iss-taskboard-day2/blob/7b76e987ef8738abfa708990256b8a7d699b73f2/.github/instructions/tests.instructions.md",
"key": "pengbin2015/nus-iss-taskboard-day2/.github/instructions/tests.instructions.md"
},
"applies_to": "**/*.test.ts"
},
"instructions": "- Always import `store` from `../src/store` and call `store.reset()` in `beforeEach()`.\n- Use `describe` blocks that mirror the route they test: `describe(\"GET /tasks/:id\", ...)`.\n- Name each test: `\"returns X when Y\"` — one focused assertion per test where possible.\n- Use Vitest (`import { describe, it, expect, beforeEach } from \"vitest\"`), not Jest.\n- Use Supertest against `createApp()` — never spin up a real server.",
"cost": {
"context_tokens": 105
}
}
Fetch it by URL: GET /api/v1/registry/pengbin2015-nus-iss-taskboard-day2-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.