Ng Mocks Testing Skill — Testing skill for Claude Code
Claude Code skill for writing Angular unit tests with ng-mocks — MockBuilder, MockRender, NgRx effects, and anti-patterns guide.
How to install Ng Mocks Testing Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open mintarasss/ng-mocks-testing-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Ng Mocks Testing Skill does
Claude Code skill for writing Angular unit tests with ng-mocks — MockBuilder, MockRender, NgRx effects, and anti-patterns guide.
Alternatives in Testing
- Test Runner — Run Python tests with pytest, unittest, or other testing frameworks 23.4k ★
- Test Optimization Patterns — テスト実行速度を改善するためのリファクタリングパターンとベストプラクティス集 974 ★
- Neolab TDD — Test-driven development with NeoLab patterns 663 ★
README
Angular Testing Skills for Claude Code
A collection of [Claude Code skills](https://docs.anthropic.com/en/docs/claude-code/skills) for writing high-quality Angular unit tests with Jest and ng-mocks. The two skills complement each other: one handles **which APIs to use**, the other handles **how tests should read**.
Skills
`ng-mocks` — framework APIs
Gives Claude deep knowledge of [ng-mocks](https://ng-mocks.sudo.eu/) — `MockBuilder`, `MockRender`, and `ngMocks.*`. Replaces hand-rolled `TestBed.configureTestingModule` boilerplate with a terse, auto-mocking API.
Covers:
- Core API:
MockBuilder,MockRender,MockProvider,MockInstance,ngMocks.faster() - Standalone and module-based components, signal stores, injection tokens
- NgRx effects with
provideMockActionsandprovideMockStore - Real-world examples: effects, parent/child components, signal store, pipes, HTTP services
`readable-tests` — naming, structure, and what to assert
Enforces test naming conventions, AAA layout, and behavior-over-implementation assertions. Use alongside `ng-mocks` whenever writing or reviewing `*.spec.ts` files.
Covers:
- Naming:
describe(Class.name),it('should … when …'), nested describes by scenario - AAA: arrange/act/assert separation, one behavior per test
- What to assert: DOM over internals, semantic selectors,
it.eachfor data-driven tests - Examples: renaming vague tests, splitting multi-behavior tests, parametrizing repeated tests, fixing implementation assertions, restructuring AAA
Installation
From GitHub (recommended)
git clone https://github.com/mintarasss/ng-mocks-testing-skill.git
Copy whichever skills you want into your Claude Code skills directory:
# Global (available in all projects)
cp -r ng-mocks-testing-skill/ng-mocks ~/.claude/skills/ng-mocks
cp -r ng-mocks-testing-skill/readable-tests ~/.claude/skills/readable-tests
# Project-specific (only this project)
mkdir -p .claude/skills
cp -r ng-mocks-t
Related Skills
Testing Best Practices
A Claude Code skill for enforcing testing best practices: TDD, property-based testing, real objects over mocks
Se Test UI
Design UI tests that verify RENDERED INTENT (the mockup), not DOM presence. Use before writing or reviewing an
TDD Workflow
Test-Driven Development workflow and patterns. Use when following TDD methodology or writing tests before impl
Canary Review Test
Review existing test code for brittleness, anti-patterns, and coverage gaps.
iOS Swiftdata Testing Agent Skill
Agent skill: SwiftData test patterns (ModelContainer fixtures, mock repos, @ModelActor tests, Decimal money as
TDD Skill — BitcoinAddressFinder
This skill documents test-driven development practices and refactoring patterns used in the BitcoinAddressFind
Related Agents
Unit Tester
Specialist in logic isolation and unit testing. Identifies edge cases, mocks dependencies, and ensures high br
Cto Test Quality
CTO-grade test quality review. Evaluates whether tests catch real bugs or just make CI green. Scores test mean
Frontend Test Engineer
Use this agent when you need to create, review, or improve unit tests for React frontend components, hooks, an