Ng Mocks Testing Skill
Description
Claude Code skill for writing Angular unit tests with ng-mocks — MockBuilder, MockRender, NgRx effects, and anti-patterns guide
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
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
Spec Kit
💫 Toolkit to help you get started with Spec-Driven Development
Testing Webapp Testing
Test local web applications using Playwright for UI verification and debugging
Testing #29
, [#52](https://github.com/affaan-m/everything-claude-code/issues/52), [#103](https://github.com/affaan-m/ever
Testing Fix Issue
by metabase - Addresses GitHub issues by taking issue number as parameter, analyzing context, implementing sol
Testing Pypict Test Design
Design comprehensive test cases using PICT (Pairwise Independent Combinatorial Testing) for optimized test sui
Testing gstack
| 15,000+ | Garry Tan's exact Claude Code setup: 6 opinionated tools that serve as CEO, Eng Manager, Release M
Testing