Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
faasjs avatar

Faasjs Unit Testing

  • 2 installs
  • 1 repo stars
  • Updated February 18, 2026
  • faasjs/faasjs-skills

Playbook for writing FaasJS unit tests using the test() entry from @faasjs/dev, shared mock setup, and a coverage matrix.

About

Guides writing and refactoring FaasJS unit tests around the test() helper, precise HTTP-style assertions, and shared mock lifecycles. A FaasJS developer applies it when authoring or reviewing tests to keep setup DRY and coverage consistent.

  • Standardizes on test() from @faasjs/dev with precise assertions
  • References test-only, shared-testing, and test-matrix guides

Faasjs Unit Testing by the numbers

  • 2 all-time installs (skills.sh)
  • Ranked #1,683 of 2,153 Testing & QA skills by installs in the Skillselion catalog
  • Data as of Jul 13, 2026 (Skillselion catalog sync)
npx skills add https://github.com/faasjs/faasjs-skills --skill faasjs-unit-testing

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs2
repo stars1
Last updatedFebruary 18, 2026
Repositoryfaasjs/faasjs-skills

What it does

Playbook for writing FaasJS unit tests using the test() entry from @faasjs/dev, shared mock setup, and a coverage matrix.

Files

SKILL.mdMarkdownGitHub ↗

Apply this skill when writing, refactoring, or reviewing unit tests in FaasJS projects.

Core rules

  • Use test() from @faasjs/dev as the default test entry.
  • Keep test files in __tests__/ and name them *.test.ts.
  • Prefer precise assertions (statusCode, data, error, headers) over broad truthy checks.
  • Extract repeated mock/setup logic into shared test helpers.

Guides

See Test-only workflow for:

  • Standard test(func) usage patterns
  • HTTP-style assertions via JSONhandler
  • Non-HTTP assertions via handler

See Shared testing kit for:

  • Shared mock lifecycle for repeated module mocks
  • Reusable caller helper to remove repeated request setup
  • Recommended shared/ directory layout

See Test matrix for:

  • Minimal behavior coverage checklist
  • Incremental run strategy for fast feedback

Related skills

Testing & QAtestingbackend

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.