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.

Writing and reviewing Vitest tests v1.0.0

Use this resource to write, review or refactor Vitest tests

New

  • 575 downloads
  • 165 likes
  • 220 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install vitest-test-writing-rules

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 writes or reviews Vitest tests against reference rules: organisation, the AAA pattern, parameterized tests, assertions, test doubles, async testing, error handling, snapshot tests and performance. It loads only the rules the task needs.

Mostly picked by

Updated November 2, 2026

Card for the “Writing and reviewing Vitest tests” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • AGENTS.md: overview of the rules
  • references/test-doubles.md: mocks and test doubles
  • references/parameterized-tests.md: parameterized tests

Good fit for

  • Your Vitest tests are hard to read
  • You add mocks to an async module

Not for

    Tags

    • vitest
    • testing
    • mocks
    • assertions
    • typescript

    About

    You say

    “Rewrite these Vitest tests to the AAA pattern and add a parameterized test for the edge cases.”

    Card for the “Writing and reviewing Vitest tests” skill

    Skill published by pageai-pro 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, review or refactor Vitest tests
    3. Review and adjust the result

    Content preview

    Files

    • AGENTS.md2.9 KB
    • LICENSE1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/aaa-pattern.md7.4 KB
    • references/assertions.md10.4 KB
    • references/async-testing.md10.6 KB
    • references/error-handling.md11.2 KB
    • references/organization.md5.2 KB
    • references/parameterized-tests.md9 KB
    • references/performance.md12.5 KB
    • references/snapshot-testing.md10.8 KB
    • references/test-doubles.md12.7 KB
    • references/vitest-features.md11.2 KB
    • SKILL.md4.9 KB

    Origin and licence

    Listed unmodified

    Author
    pageai-pro
    Source
    github.com/pageai-pro/ralph-loop/tree/eba65ebbb0a78c4a7fd25aab28e94966eddbca5b/.agent/skills/vitest-best-practices
    Licence
    MIT

    Notice

    « vitest-best-practices » (pageai-pro, 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.