javascript-testing-patterns – skill Lập trình cho agent AI
Hướng dẫn toàn diện triển khai chiến lược kiểm thử vững chắc cho ứng dụng JavaScript/TypeScript, sử dụng các framework kiểm thử hiện đại và thực hành tốt nhất.
Cài skill javascript-testing-patterns bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/javascript-testing-patterns-d9c43.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /javascript-testing-patterns – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/javascript-testing-patterns-d9c43.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $javascript-testing-patterns – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/javascript-testing-patterns-d9c43.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /javascript-testing-patterns – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/javascript-testing-patterns-d9c43.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /javascript-testing-patterns – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
JavaScript Testing Patterns
Comprehensive guide for implementing robust testing strategies in JavaScript/TypeScript applications using modern testing frameworks and best practices.
Use this skill when
- Setting up test infrastructure for new projects
- Writing unit tests for functions and classes
- Creating integration tests for APIs and services
- Implementing end-to-end tests for user flows
- Mocking external dependencies and APIs
- Testing React, Vue, or other frontend components
- Implementing test-driven development (TDD)
- Setting up continuous testing in CI/CD pipelines
Do not use this skill when
- The task is unrelated to javascript testing patterns
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
Resources
The bundled playbook contains illustrative fragments, not a tested project. Verify the selected framework’s version/configuration and isolate databases/network effects before executing tests; repository tests can run arbitrary code.
resources/implementation-playbook.mdfor detailed patterns and examples.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Skill liên quan
- javascript-typescript-typescript-scaffold – Khởi tạo khung dự án TypeScript với công cụ build, kiểm tra kiểu, kiểm thử và cấu hình.
- jest-skill – Tạo test unit và integration với Jest trong JavaScript hoặc TypeScript. Bao gồm mocking…
- testrail – Đồng bộ test với TestRail. Dùng khi người dùng nhắc đến "testrail", "test management"…
- js-reverse – Dịch ngược JavaScript phía front-end: xác định chuỗi chữ ký, phân tích tham số request…
- json-schema-manual – Hướng dẫn JSON Schema: tạo schema xác thực draft 2020-12 từ danh sách trường đã xác…
- junit-5-skill – Tạo test unit và integration JUnit 5 cho Java đạt chuẩn production. Bao gồm assertion…
- k6-load-testing – Skill kiểm thử tải k6 toàn diện cho API, trình duyệt và kiểm thử khả năng mở rộng. Viết…
- kaizen – Hướng dẫn cải tiến liên tục, phòng ngừa lỗi và chuẩn hóa. Dùng skill này khi người dùng…