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.

Vitest unit tests v1.0.0

Use this resource to write and stabilize unit tests with Vitest

New

  • 411 downloads
  • 146 likes
  • 105 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install vitest-unit-test-practices

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 Vitest rules ranked by priority for async tests, mocks and configuration. It also helps fix flaky tests and migrate from Jest.

Mostly picked by

Updated November 2, 2026

Card for the “Vitest unit tests” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: rule categories by priority and quick reference
  • references/: assertions, async patterns, fake timers, mocking and organization

Good fit for

  • Your unit tests are slow or flaky in CI
  • You are migrating a test suite from Jest to Vitest

Not for

    Tags

    • vitest
    • tests
    • mocks
    • async

    About

    You say

    “My React hook tests are flaky in CI: fix the async waits and the timers.”

    Card for the “Vitest unit tests” skill

    Skill published by pymodel 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 stabilize unit tests with Vitest
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/assert-edge-cases.md2.3 KB
    • references/assert-expect-assertions.md2.4 KB
    • references/assert-one-assertion-concept.md2.7 KB
    • references/assert-specific-matchers.md2.6 KB
    • references/assert-toequal-vs-tobe.md2.2 KB
    • references/async-act-wrapper.md2.5 KB
    • references/async-await-assertions.md1.5 KB
    • references/async-concurrent-expect.md1.9 KB
    • references/async-error-handling.md2.1 KB
    • references/async-fake-timers.md2 KB
    • references/async-return-promises.md1.6 KB
    • references/async-waitfor-polling.md2.5 KB
    • references/env-browser-api-mocking.md2.3 KB
    • references/env-globals-config.md2.1 KB
    • references/env-per-file-override.md3.3 KB
    • references/env-setup-files.md2.4 KB
    • references/mock-avoid-overmocking.md2.9 KB
    • references/mock-clear-between-tests.md2.4 KB
    • references/mock-implementation-not-value.md2.4 KB
    • references/mock-msw-network.md2.7 KB
    • references/mock-spyon-vs-mock.md2.5 KB
    • references/mock-type-safety.md2.5 KB
    • references/mock-vi-mock-hoisting.md3 KB
    • references/org-describe-nesting.md2.5 KB
    • references/org-file-colocation.md1.8 KB
    • references/org-test-naming.md2.1 KB
    • references/org-test-skip-only.md1.9 KB
    • references/perf-bail-fast-fail.md1.8 KB
    • references/perf-bench-test-context.md2.3 KB
    • references/perf-disable-isolation.md2.2 KB
    • references/perf-happy-dom.md2.4 KB
    • references/perf-pool-selection.md2.1 KB
    • references/perf-run-mode-ci.md2.3 KB
    • references/perf-sharding.md3.1 KB
    • references/setup-avoid-shared-state.md2.6 KB
    • references/setup-beforeall-expensive.md2.4 KB
    • references/setup-beforeeach-cleanup.md2 KB
    • references/setup-reset-modules.md2.6 KB
    • references/setup-restore-mocks.md2.8 KB
    • references/setup-test-factories.md2.9 KB
    • references/setup-vitest5-migration.md4.6 KB
    • references/snap-avoid-large.md2.4 KB
    • references/snap-describe-intent.md2.2 KB
    • references/snap-inline-over-file.md2 KB
    • references/snap-review-updates.md1.9 KB
    • references/snap-stable-serialization.md2.4 KB
    • SKILL.md4.9 KB

    Origin and licence

    Listed unmodified

    Author
    pymodel
    Source
    github.com/pymodel/react-frontend-skills/tree/b210600fdf49441ee1efeca2cbdc05599ec03019/skills/vitest
    Licence
    MIT

    Notice

    « vitest » (pymodel, 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.