CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl-labs/api-testing-first-steps

Get test coverage on an Express/Node API fast — the first 5 tests that catch

94

1.26x
Quality

90%

Does it follow best practices?

Impact

100%

1.26x

Average score across 5 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

test-file-created.jsonverifiers/

{
  "instruction": "Create test files with proper setup including all three package.json scripts",
  "relevant_when": "Agent is building or setting up tests for an Express/Node API",
  "context": "The agent should create a test file with API tests using supertest, configure Vitest with globals and node environment, and add all three scripts: test (vitest run), test:watch (vitest), and test:coverage (vitest run --coverage).",
  "sources": [
    {
      "type": "file",
      "filename": "skills/api-testing-first-steps/SKILL.md",
      "tile": "tessl-labs/api-testing-first-steps@0.1.0"
    }
  ],
  "checklist": [
    {
      "name": "test-file-exists",
      "rule": "Agent creates a test file (*.test.ts, *.spec.ts, or in __tests__/ directory)",
      "relevant_when": "Agent builds an Express API"
    },
    {
      "name": "test-runner-configured",
      "rule": "Agent installs vitest and supertest as devDependencies and adds test, test:watch, AND test:coverage scripts to package.json",
      "relevant_when": "Agent sets up project dependencies"
    },
    {
      "name": "supertest-usage",
      "rule": "Agent uses request(app) from supertest for all HTTP assertions, not fetch, axios, or direct function calls",
      "relevant_when": "Agent writes API tests"
    },
    {
      "name": "app-export-pattern",
      "rule": "Agent exports the app and guards app.listen() with NODE_ENV check so tests can import the app without starting the server",
      "relevant_when": "Agent modifies server.ts for testing"
    }
  ]
}

tile.json