Reference docMembers
Testing Patterns Reference (JavaScript/TypeScript)
Testing Patterns Reference (JavaScript/TypeScript) is a reference document for Claude Code, from the Addy Osmani agent skills collection by addyosmani. The full text is about 859 words in 12 sections, with 9 code blocks and 1 table. It is a supporting file that a skill or agent reads while it works, so the main instructions can stay short.
It is most useful for people working in Frontend and Testing and QA who use Claude Code.
What it covers
- Table of Contents
- Test Structure Arrange-Act-Assert
- Test Naming Conventions
- Common Assertions
- Mocking Patterns
- Mock Functions
- Mock Modules
- Mock at Boundaries Only
- React/Component Testing
- API / Integration Testing
The full text is in the members library
Book a call and we will give you access to the full Claude Code library: every entry in full, search by meaning, copy and download.
Source: https://github.com/addyosmani/agent-skills/blob/main/references/testing-patterns.md
Author: addyosmani, Addy Osmani agent skills. License: MIT.