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: tests, mocks, coverage and browser mode v1.0.0

Use this resource to write, configure or run tests with Vitest

New

  • 586 downloads
  • 211 likes
  • 174 saves

Free

Install with the CLI

In a terminal, from the folder you want:

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

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 tests, configures mocks and snapshots, sets up coverage and runs tests in browser mode when needed. It relies on the configuration, API and assertion references.

Mostly picked by

Updated November 2, 2026

Card for the “Vitest: tests, mocks, coverage and browser mode” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: installation, startup and commands
  • references/mocking.md: vi.fn, vi.mock and fake timers
  • references/config.md: vitest.config options

Good fit for

  • Your Vite project needs unit tests
  • You test a component in a real browser

Not for

    Tags

    • vitest
    • tests
    • mocks
    • coverage
    • vite

    About

    You say

    “Write Vitest tests for this service and mock the network call with vi.mock.”

    Card for the “Vitest: tests, mocks, coverage and browser mode” skill

    Skill published by itechmeat 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, configure or run tests with Vitest
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1 KB
    • NOTICE-PALATEKIT.md0.4 KB
    • references/api.md5.2 KB
    • references/browser.md9.4 KB
    • references/cli.md6.5 KB
    • references/config.md11.6 KB
    • references/expect.md6.4 KB
    • references/mocking.md8.6 KB
    • SKILL.md8.9 KB

    Origin and licence

    Listed unmodified

    Author
    itechmeat
    Source
    github.com/itechmeat/llm-code/tree/509c4e00400e83eced7a4313cd34de87698e63c2/skills/vitest
    Licence
    MIT

    Notice

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