Awesome-claude-code test

Run tests with various options and configurations

install
source · Clone the upstream repo
git clone https://github.com/m-ret/awesome-claude-code
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/m-ret/awesome-claude-code "$T" && mkdir -p ~/.claude/skills && cp -r "$T/templates/nodejs/.claude/skills/test" ~/.claude/skills/m-ret-awesome-claude-code-test && rm -rf "$T"
manifest: templates/nodejs/.claude/skills/test/SKILL.md
source content

Test Skill

Run and manage tests for Node.js projects.

When to Use

  • After implementing a feature
  • Before committing
  • When debugging test failures
  • When user requests test run

Arguments

$ARGUMENTS - Optional: specific test file, pattern, or flags

Steps

  1. Detect test runner Check package.json for:

    • Jest
    • Vitest
    • Mocha
    • Node test runner
  2. Run tests

    Full test suite

    npm test
    

    Specific file

    npm test -- path/to/test.ts
    

    Watch mode

    npm test -- --watch
    

    With coverage

    npm test -- --coverage
    

    Pattern matching

    npm test -- --testNamePattern="should handle"
    
  3. Report results

    • Number of tests passed/failed
    • Failed test details
    • Coverage summary (if available)

Output

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TEST RESULTS

Total: X tests
Passed: Y
Failed: Z
Skipped: W

[Failed test details if any]

Coverage: XX% (if available)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Debugging Failed Tests

When tests fail:

  1. Show the specific assertion that failed
  2. Show relevant code context
  3. Suggest potential fixes
  4. Offer to run in verbose/debug mode