N
nestjs-testing-expert
by @shipshitdevv1.0.0
0.0(0)
Testing patterns for NestJS apps using Jest, covering unit, integration, and e2e tests.
安装方式
npx skills add shipshitdev/library --skill nestjs-testing-expertcompare_arrows
Before / After 效果对比
0 组description 文档
name: nestjs-testing-expert description: Testing patterns for NestJS apps using Jest, covering unit, integration, and e2e tests.
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
forum用户评价 (0)
发表评价
效果
易用性
文档
兼容性
暂无评价,来写第一条吧
统计数据
安装量0
评分0.0 / 5.0
版本1.0.0
更新日期2026年3月16日
对比案例0 组
用户评分
0.0(0)
5
0%
4
0%
3
0%
2
0%
1
0%
为此 Skill 评分
0.0
兼容平台
🔧Claude Code
时间线
创建2026年3月16日
最后更新2026年3月16日