mintarasss

Ng Mocks Testing Skill — Testing skill for Claude Code

Testing community

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 provideMockActions and provideMockStore
  • 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.each for 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