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 test patterns and network mocks v1.0.0

Use this resource to write isolated, fast and maintainable unit tests

New

  • 596 downloads
  • 125 likes
  • 226 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install unit-test-patterns-mocks

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 structures tests with the AAA pattern, groups cases with parametrized tests, picks fixture scopes and mocks network calls with MSW or VCR. It also builds test data with factories. Covers Vitest, Jest and pytest.

Mostly picked by

Updated November 2, 2026

Card for the “Unit test patterns and network mocks” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • checklists/: checklists for MSW, VCR and test data
  • references/: AAA structure, factories, MSW 2.x API and stateful tests
  • rules/: factories, fixtures, data seeding and cleanup, MSW mocking

Good fit for

  • You write unit tests and want less repeated code
  • You need stable network mocks

Not for

    Tags

    • unit tests
    • mocks
    • fixtures

    About

    You say

    “Rewrite these tests as parametrized tests and add an MSW mock for the API call.”

    Card for the “Unit test patterns and network mocks” skill

    Skill published by yonatangross 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 isolated, fast and maintainable unit tests
    3. Review and adjust the result

    Content preview

    Files

    • checklists/msw-setup-checklist.md3.2 KB
    • checklists/test-data-checklist.md0.8 KB
    • checklists/vcr-checklist.md1.3 KB
    • examples/handler-patterns.md10.2 KB
    • LICENSE1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/aaa-pattern.md1.9 KB
    • references/factory-patterns.md2.3 KB
    • references/msw-2x-api.md6.1 KB
    • references/stateful-testing.md4.2 KB
    • rules/_sections.md1.2 KB
    • rules/data-factories.md2 KB
    • rules/data-fixtures.md1.9 KB
    • rules/data-seeding-cleanup.md1.8 KB
    • rules/mocking-msw.md2.5 KB
    • rules/mocking-vcr.md2.5 KB
    • rules/unit-aaa-pattern.md2.1 KB
    • rules/unit-fixture-scoping.md2 KB
    • rules/unit-parametrized.md2.3 KB
    • scripts/create-msw-handler.md1.7 KB
    • scripts/create-test-case.md2 KB
    • scripts/create-test-fixture.md1.5 KB
    • SKILL.md9.8 KB
    • test-cases.json3 KB

    Origin and licence

    Listed unmodified

    Author
    yonatangross
    Source
    github.com/yonatangross/orchestkit/tree/18a6aaa53d9971ef094b0758b08dfc606a1ea4bc/src/skills/testing-unit
    Licence
    MIT

    Notice

    « testing-unit » (yonatangross, 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.