agentsclimarketplace

Nean unit test

Skill edfenton/claude-skills/nean/nean-unit-test

A collection of Claude Code skills for iOS, MERN, NEAN, and shared development workflows

Install
npx -y skills add edfenton/claude-skills --skill nean-unit-test

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Run NEAN unit tests, report results, and optionally fix failures.

SKILL.md

1.6 KB, as published. Nobody here has run it

Purpose

Run unit tests, report failures with enough detail to debug, then (with approval) fix issues and re-run to confirm.

Arguments

  • --scope <target> — Limit to api, web, libs, or all (default: all)
  • --no-fix — Report only, don't offer to fix

Workflow

1. Run tests

# All tests
npm run test

# With coverage
npm run test -- --coverage

# Scoped (using Nx)
npx nx test api
npx nx test web
npx nx run-many --target=test --projects=shared-*

# Affected only (CI optimization)
npx nx affected --target=test

2. Report results

Include:

  • Pass/fail/skip counts
  • Coverage summary (if available)
  • Each failing test: file, test name, assertion diff or error
  • If coverage not configured, note this and offer to set it up

3–4. Approval gate, fix and confirm

See /shared-review-workflow for approval gate protocol, fix constraints, and severity definitions.

Test file conventions

# NestJS
apps/api/src/modules/<feature>/__tests__/<feature>.service.spec.ts
apps/api/src/modules/<feature>/__tests__/<feature>.controller.spec.ts

# Angular
apps/web/src/app/<feature>/<feature>.component.spec.ts

# Libraries
libs/<scope>/<name>/src/**/*.spec.ts

Coverage thresholds

Default targets (configure in jest.config.ts):

  • Libs: 80% statements, 80% branches
  • Apps: 60% statements, 50% branches

Reference

For coverage setup and common fix patterns, see reference/nean-unit-test-reference.md

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.