jest-testing — Claude Code skill for Jest
This skill guides Jest testing for Node.js, from unit checks to API tests with Supertest. Use it when you need examples for mocks, coverage reports, or CI runs.
LicenseRef-Proprietary 121 installs ★ 2 updated 2026-01-07
npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill jest-testing -a claude-codeWhat jest-testing does
The skill covers Jest test structure, synchronous and asynchronous code, module and function mocks, fake timers, and test lifecycle hooks. Its Supertest examples exercise API requests, including successful responses and error cases.
It also walks through Jest settings in package.json, coverage reports, and running tests in GitHub Actions. The examples use npm test and npm test -- --coverage. API test examples depend on Supertest, and the skill’s setup calls for installing jest and supertest as development dependencies. Without those packages, the API testing examples will not run.
What it helps with
- write unit tests for Node.js functions
- check async code and error handling
- mock a module or function in a test
- exercise an API with Supertest
- generate a code coverage report
Example prompts for the agent
- Help me write Jest tests for a user service, including the duplicate-email error case.
- Create Supertest API tests for the route that creates a user.
- Set up Jest tests with a coverage report in GitHub Actions.
How to install jest-testing
1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill jest-testing -a claude-code2Manually: put the files in place
~/.claude/skills/jest-testing/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/jest-testing/
1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill jest-testing -a codex2Manually: put the files in place
.agents/skills/jest-testing/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill jest-testing -a cursor2Manually: put the files in place
.cursor/skills/jest-testing/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install pluginagentmarketplace/custom-plugin-nodejs skills/jest-testing2Manually: put the files in place
.github/skills/jest-testing/SKILL.md1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill jest-testing -a gemini-cli2Platform CLI
gemini skills install https://github.com/pluginagentmarketplace/custom-plugin-nodejs --path skills/jest-testingManually: put the files in place
.devin/skills/jest-testing/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill jest-testing -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about jest-testing
How do I install jest-testing in Claude Code?
Run npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill jest-testing -a claude-code. The skill file is installed at ~/.claude/skills/jest-testing/SKILL.md.
What does the jest-testing skill do?
It helps create Jest tests for Node.js applications, including mocks and API checks with Supertest. It also covers coverage reports and CI test runs.
What is needed for API tests with jest-testing?
The API testing examples use Supertest. Install jest and supertest as development dependencies.