testing

Automate unit, integration, and E2E tests in JavaScript/TypeScript projects.

39|2|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/hffmnnj/opencode-goopspec --skill testing-hffmnnj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/hffmnnj/opencode-goopspec/tree/main/skills/testing
Command: npx skills add https://github.com/hffmnnj/opencode-goopspec --skill testing-hffmnnj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers reliably validate software behavior by writing and executing tests that catch regressions early.

Core Features & Use Cases

  • Unit, Integration, and E2E testing guidance: structure test suites and apply best practices to ensure code quality.
  • Test Writing & Organization: provides examples and templates to compose clear, maintainable tests.
  • Usage Scenarios: verify new features, guard against regressions, and support CI pipelines.

Quick Start

Create a test scaffold and run tests using your project's preferred tooling (e.g., npm test or yarn test). Adapt configurations for your framework and coverage goals.

Frequently Asked Questions about testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write and run unit tests for TypeScript projects?

Unit tests validate individual functions or modules by isolating code and checking expected behavior. Use Jest or similar frameworks to write test cases with assertions, then run them via npm test or yarn test to catch bugs early in development.

What's the difference between unit, integration, and E2E tests?

Unit tests verify single functions in isolation; integration tests check how modules work together; E2E tests validate entire workflows from user perspective. All three catch different classes of bugs—unit tests find logic errors, integration tests expose interaction issues, and E2E tests confirm real-world functionality.

How do I set up test coverage reporting in my project?

Test coverage measures how much code your tests execute. Configure your testing framework (Jest, Playwright) to generate coverage reports showing untested lines, then integrate into CI pipelines to enforce minimum thresholds and identify gaps in test suites.

Can I use Jest with CI pipelines?

Yes. Jest integrates directly into CI/CD workflows to automate test execution on every commit. Configure your CI system to run npm test or yarn test, parse test results, and block deployments if tests fail—ensuring code quality before production.

What should I test first when building a new feature?

Start with unit tests for core logic and edge cases, then add integration tests for feature dependencies, and finally E2E tests for user workflows. This pyramid approach catches regressions quickly while keeping test suites maintainable and fast.

Do I need to write tests for all code?

No, but prioritize tests for business logic, public APIs, and error handling. Skip trivial getters or auto-generated code. Use coverage reports to guide decisions and focus efforts where tests prevent the most costly bugs.