← All skills

Mocha Skill

Unit testingJavaScriptTypeScript

Copy and Paste in your Terminal

npx skills add https://github.com/LambdaTest/agent-skills.git --skill mocha-skill

Overview

When to Apply: Reference when writing Node.js tests with Mocha, using Chai for BDD-style assertions, or Sinon for mocks/stubs/spies. Triggers on "Mocha", "Chai", "sinon", "mocha test".

Playbook Deep Dive (10 sections): §1 Production Configuration · §2 Testing with Chai + Sinon · §3 Advanced Sinon Patterns · §4 Async Patterns · §5 Hooks & Test Organization · §6 Custom Reporters & Plugins · §7 Express/API Testing with Supertest · §8 CI/CD Integration · §9 Debugging Table · §10 Best Practices

The agent loads from 2 on-demand reference files (advanced-patterns.md, playbook.md) containing detailed implementation guides, cloud integration patterns, debugging tables, and language-specific best practices.


For full reference, implementation samples, and cloud setup, see the Documentation, Playbook, Advanced patterns tabs.