AgentStack
SKILL verified MIT Self-run

Javascript Testing

skill-caraya-agent-skills-javascript-testing · by caraya

JavaScript testing skill for test infrastructure, async test patterns, and runtime reliability using Jest, Vitest, or Mocha. Trigger phrases: JavaScript tests, Jest setup, async tests, test timeouts, flaky tests, test fixtures, mock functions.

No reviews yet
0 installs
3 views
0.0% view→install

Install

$ agentstack add skill-caraya-agent-skills-javascript-testing

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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.

Are you the author of Javascript Testing? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

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.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.