Install
$ agentstack add skill-caraya-agent-skills-javascript-testing ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
JavaScript Testing
Use this SKILL when setting up or validating test infrastructure for JavaScript/TypeScript projects, diagnosing flaky async tests, or designing reliable CI test suites.
Recommended runners:
- Jest (general-purpose, snapshot testing, good mocks)
- Vitest (Vite/Esm-native projects)
- Mocha + Chai + Sinon (explicit control)
Checklist
- AAA pattern (Arrange, Act, Assert) and descriptive test names
- Avoid shared mutable state across concurrent tests
- Proper async handling (return/await/promises)
- Reset mocks between tests
Templates & Examples
Example test file (Jest):
// __tests__/sum.test.js
const sum = require('../sum')
test('adds numbers', () => {
expect(sum(1,2)).toBe(3)
})
Flaky-test triage CSV header:
File,TestName,ObservedBehavior,SuggestedFix tests/api.test.js,"handles slow response","timeout in CI","increase timeout; mock network; make deterministic"
Output requirements
- For each finding provide: file and line, risk, why it matters, minimal fix with code example.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: caraya
- Source: caraya/agent-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.