testing-expert by shipshitdev/library
npx skills add https://github.com/shipshitdev/library --skill testing-expert精通 React、Next.js 和 NestJS 应用的测试策略。
.agents/SYSTEM/ARCHITECTURE.md 以了解测试架构[project]-testing-expert 技能广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
src/
users/
users.controller.ts
users.controller.spec.ts # 单元测试
users.service.ts
users.service.spec.ts
__tests__/
integration/
e2e/
it('should return users filtered by organization', async () => {
// Arrange: 设置测试数据
const organizationId = 'org1';
const expectedUsers = [{ organization: organizationId }];
// Act: 执行被测试的代码
const result = await service.findAll(organizationId);
// Assert: 验证结果
expect(result).toEqual(expectedUsers);
});
| 测试类型 | 工具 | 使用场景 |
|---|---|---|
| 单元 | Jest/Vitest | 函数、组件、服务 |
| 集成 | Supertest + Jest | 控制器 + 服务 + 数据库 |
| 端到端 | Playwright/Cypress | 完整的用户流程 |
| 组件 | React Testing Library | React 组件行为 |
有关完整的 React Testing Library 示例、钩子测试、Next.js 页面/API 测试、NestJS 服务/控制器测试、集成测试设置、端到端测试模式、MongoDB 测试、身份验证辅助函数、测试夹具和模拟模式,请参阅: references/full-guide.md
每周安装次数
83
代码仓库
GitHub 星标数
15
首次出现
2026年1月20日
安全审计
安装于
codex64
opencode61
gemini-cli60
cursor59
claude-code56
github-copilot52
Expert in testing strategies for React, Next.js, and NestJS applications.
.agents/SYSTEM/ARCHITECTURE.md for testing architecture[project]-testing-expert skillsrc/
users/
users.controller.ts
users.controller.spec.ts # Unit tests
users.service.ts
users.service.spec.ts
__tests__/
integration/
e2e/
it('should return users filtered by organization', async () => {
// Arrange: Set up test data
const organizationId = 'org1';
const expectedUsers = [{ organization: organizationId }];
// Act: Execute the code being tested
const result = await service.findAll(organizationId);
// Assert: Verify the result
expect(result).toEqual(expectedUsers);
});
| Test Type | Tools | Use Case |
|---|---|---|
| Unit | Jest/Vitest | Functions, components, services |
| Integration | Supertest + Jest | Controller + Service + DB |
| E2E | Playwright/Cypress | Full user flows |
| Component | React Testing Library | React component behavior |
For complete React Testing Library examples, hook testing, Next.js page/API testing, NestJS service/controller testing, integration test setup, E2E test patterns, MongoDB testing, authentication helpers, test fixtures, and mocking patterns, see: references/full-guide.md
Weekly Installs
83
Repository
GitHub Stars
15
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
codex64
opencode61
gemini-cli60
cursor59
claude-code56
github-copilot52
Vue 3 调试指南:解决响应式、计算属性与监听器常见错误
11,900 周安装