
Nestjs Testing Expert
- 641 installs
- 31 repo stars
- Updated August 2, 2026
- shipshitdev/library
nestjs-testing-expert is a Jest-focused agent skill that builds reliable unit, integration, and e2e tests for NestJS modules, services, and controllers without flaky TestModule setups.
About
nestjs-testing-expert is a version 1.0.0 MIT-licensed skill from Ship Shit Dev that teaches Claude how to write dependable Jest test suites for NestJS applications. It covers unit tests for isolated services, integration tests that wire NestJS modules through Test.createTestingModule, and end-to-end tests that exercise controllers and HTTP layers. The skill targets common NestJS pain points such as flaky TestModule configuration, improper provider mocking, and inconsistent testing patterns across modules. Developers reach for nestjs-testing-expert when standing up test coverage for new NestJS features or refactoring legacy modules that lack reliable specs. Tags in the manifest explicitly list nestjs, testing, and jest, signaling a backend API focus rather than frontend UI work. Use it whenever NestJS test scaffolding needs consistent patterns instead of one-off Jest guesses that break in CI.
- Maps testing pyramid: unit logic, module integration, HTTP e2e with supertest
- Documents Test.createTestingModule with explicit providers and jest.fn doubles
- Covers in-memory DB adapters and test containers for integration realism
- Includes checklist: arrange/act/assert, error paths, deterministic fast runs
Nestjs Testing Expert by the numbers
- 641 all-time installs (skills.sh)
- +8 installs in the week ending Aug 5, 2026 (Skillselion tracking)
- Ranked #583 of 2,153 Testing & QA skills by installs in the Skillselion catalog
- Security screen: MEDIUM risk (skills.sh audit)
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/shipshitdev/library --skill nestjs-testing-expertAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 641 |
|---|---|
| repo stars | ★ 31 |
| Security audit | 3 / 3 scanners passed |
| Last updated | August 2, 2026 |
| Repository | shipshitdev/library ↗ |
How do you write reliable Jest tests for NestJS modules?
Stand up Jest unit, integration, and e2e tests for NestJS modules without flaky TestModule setups.
Who is it for?
Backend developers adding or fixing Jest coverage on NestJS services, controllers, and module providers.
Skip if: Frontend React testing, non-NestJS Node frameworks, or production deployment configuration.
When should I use this skill?
User asks to write unit, integration, or e2e tests for NestJS modules, services, controllers, or TestModule setups.
What you get
Jest unit specs, integration TestModule setups, and e2e test files for NestJS services and controllers.
- Unit test specs
- Integration TestModule configs
- E2E test files
By the numbers
- Version 1.0.0
- Covers 3 test levels: unit, integration, and e2e
Files
NestJS Testing Expert
You build reliable Jest test suites for NestJS modules, services, and controllers.
When to Use
- Writing unit or integration tests for NestJS
- Setting up TestModule, mocking providers, or database fakes
- Debugging flaky tests
Testing Pyramid
- Unit tests for pure logic and services
- Integration tests for modules with real providers
- E2E tests for HTTP APIs
Common Patterns
- Use
Test.createTestingModulewith explicit providers. - Mock external services with jest.fn or test doubles.
- For DB: use in-memory adapters or test containers when needed.
- Prefer
supertestfor HTTP-level e2e.
Tips
- Keep tests deterministic.
- Reset mocks between tests.
- Avoid shared mutable state.
Checklist
- Clear arrange/act/assert structure
- Minimal mocking
- Covers error paths
- Fast to run
{
"name": "nestjs-testing-expert",
"version": "1.0.0",
"description": "Testing patterns for NestJS apps using Jest, covering unit, integration, and e2e tests.",
"author": {
"name": "Ship Shit Dev",
"email": "hello@shipshit.dev",
"url": "https://github.com/shipshitdev"
},
"license": "MIT",
"skills": "."
}
Related skills
How it compares
Choose nestjs-testing-expert for NestJS-specific Jest patterns instead of generic JavaScript testing skills that omit TestModule wiring.
FAQ
What test types does nestjs-testing-expert cover?
nestjs-testing-expert covers Jest unit, integration, and e2e tests for NestJS modules, services, and controllers. It emphasizes reliable TestModule configuration and provider mocking to reduce flaky CI failures.
What version is nestjs-testing-expert?
nestjs-testing-expert is version 1.0.0, MIT-licensed from Ship Shit Dev, with manifest tags nestjs, testing, and jest for backend API test scaffolding.
Is Nestjs Testing Expert safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.