jest-async
CommunityMaster Jest async testing patterns
Authorbradtaylorsf
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill simplifies the process of testing asynchronous operations in JavaScript using Jest, ensuring your code handles callbacks, promises, and timers reliably.
Core Features & Use Cases
- Async/Await & Promises: Write clear tests for asynchronous functions using
async/awaitand promise-based assertions likeresolvesandrejects. - Timer Mocks: Effectively test code involving
setTimeout,setInterval, and debounced/polled functions using Jest's fake timers. - Event & Stream Testing: Verify event emission and data flow through streams in your asynchronous code.
- Use Case: Ensure your API client correctly handles responses and errors, or that your background job processing logic completes within expected timeframes.
Quick Start
Use the jest-async skill to write a test for an async function that fetches user data.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: jest-async Download link: https://github.com/bradtaylorsf/alphaagent-team/archive/main.zip#jest-async Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.