faasjs-unit-testing
SKILL.md
Apply this skill when writing, refactoring, or reviewing unit tests in FaasJS projects.
Core rules
- Use
test()from@faasjs/devas 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
Weekly Installs
1
Repository
faasjs/faasjs-skillsGitHub Stars
1
First Seen
7 days ago
Security Audits
Installed on
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1