faasjs-unit-testing

Installation
SKILL.md

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
Related skills
Installs
2
GitHub Stars
1
First Seen
Mar 10, 2026