Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Unit and integration testing best practices v1.0.0

Use this resource to write and review unit and integration tests in TypeScript

New

  • 364 downloads
  • 127 likes
  • 101 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install unit-integration-testing-principles

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent applies 34 rules in seven categories: test structure, isolation, assertions, test data, mocking, coverage and performance. It flags vague assertions and flaky tests, and recommends edge cases and error paths. You get clearer, more reliable tests written with Jest or Vitest.

Mostly picked by

Updated November 2, 2026

Card for the “Unit and integration testing best practices” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • AGENTS.md: rule categories by priority and quick reference
  • rules/: rules on structure, assertions, coverage and error paths

Good fit for

  • You write unit or integration tests in TypeScript
  • Your test suite is slow or flaky

Not for

    Tags

    • testing
    • typescript
    • vitest
    • tdd

    About

    You say

    “Review these Vitest tests and strengthen the assertions and error cases.”

    Card for the “Unit and integration testing best practices” skill

    Skill published by asyrafhussin under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to write and review unit and integration tests in TypeScript
    3. Review and adjust the result

    Content preview

    Files

    • AGENTS.md145 KB
    • LICENSE1.1 KB
    • metadata.json1.6 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • README.md1.7 KB
    • rules/_sections.md2.3 KB
    • rules/_template.md1.4 KB
    • rules/assert-custom-matchers.md5.5 KB
    • rules/assert-expected-actual.md3.4 KB
    • rules/assert-meaningful-messages.md4.8 KB
    • rules/assert-no-magic-numbers.md4.9 KB
    • rules/assert-specific.md4.3 KB
    • rules/cov-edge-cases.md4.3 KB
    • rules/cov-meaningful.md4.2 KB
    • rules/cov-not-100-percent.md4.3 KB
    • rules/cov-unhappy-paths.md4.6 KB
    • rules/data-builders.md5.2 KB
    • rules/data-factories.md5.9 KB
    • rules/data-faker.md5.3 KB
    • rules/data-fixtures.md5.6 KB
    • rules/data-minimal.md5.2 KB
    • rules/data-realistic.md5.8 KB
    • rules/iso-cleanup.md4.8 KB
    • rules/iso-deterministic.md4.7 KB
    • rules/iso-independent-tests.md3.2 KB
    • rules/iso-no-order-dependency.md4.3 KB
    • rules/iso-no-shared-state.md3.8 KB
    • rules/iso-test-doubles.md6.4 KB
    • rules/mock-boundaries.md3.4 KB
    • rules/mock-minimal.md3.9 KB
    • rules/mock-realistic.md4.6 KB
    • rules/mock-verify-interactions.md3.9 KB
    • rules/perf-fast-unit.md4.3 KB
    • rules/perf-parallel.md4.9 KB
    • rules/perf-test-organization.md4.1 KB
    • rules/struct-aaa-pattern.md2.3 KB
    • rules/struct-describe-it.md3.3 KB
    • rules/struct-descriptive-names.md2.4 KB
    • rules/struct-given-when-then.md3.3 KB
    • rules/struct-one-assertion.md3.2 KB
    • rules/struct-setup-teardown.md3.9 KB
    • SKILL.md4.6 KB

    Origin and licence

    Listed unmodified

    Author
    asyrafhussin
    Source
    github.com/asyrafhussin/agent-skills/tree/1aa0ff717c10309226c9e678f00873976450fd76/skills/testing-best-practices
    Licence
    MIT

    Notice

    « testing-best-practices » (asyrafhussin, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.