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.

Test Vue components with Vitest and Playwright v1.0.0

Use this resource to organize Vue tests with Vitest, Vue Test Utils, mocks and end-to-end tests

New

  • 315 downloads
  • 199 likes
  • 141 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install vue-testing-guide

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 organizes the tests of a Vue app: Vitest for components and composables, Vue Test Utils for rendering, mocks for dependencies and Playwright for full flows. It relies on notes about pitfalls, such as async operations, Pinia and Suspense. You get a more stable test suite.

Mostly picked by

Updated November 2, 2026

Card for the “Test Vue components with Vitest and Playwright” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: test setup for Vue 3 and the approach to component tests
  • reference/: notes on Vitest, async testing, Pinia, Suspense, composables and Playwright

Good fit for

  • Your Vue project has no tests yet and you want a sound base
  • Component tests break whenever internals are refactored

Not for

    Tags

    • vue
    • vitest
    • testing
    • playwright

    About

    You say

    “Set up Vitest for this Vue project and write the tests for the cart component.”

    Card for the “Test Vue components with Vitest and Playwright” skill

    Skill published by github.com/vuejs-ai 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 organize Vue tests with Vitest, Vue Test Utils, mocks and end-to-end tests
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • reference/async-component-testing.md4.9 KB
    • reference/teleport-testing-complexity.md4.2 KB
    • reference/testing-async-await-flushpromises.md5.3 KB
    • reference/testing-browser-vs-node-runners.md5.7 KB
    • reference/testing-component-blackbox-approach.md4.8 KB
    • reference/testing-composables-helper-wrapper.md6.2 KB
    • reference/testing-e2e-playwright-recommended.md6.7 KB
    • reference/testing-no-snapshot-only.md6.3 KB
    • reference/testing-pinia-store-setup.md6.3 KB
    • reference/testing-suspense-async-components.md6.5 KB
    • reference/testing-vitest-recommended-for-vue.md5.1 KB
    • SKILL.md2.1 KB

    Origin and licence

    Listed unmodified

    Author
    github.com/vuejs-ai
    Source
    github.com/vuejs-ai/skills/tree/198f0cd8f7f9c0a3d9b566ccc16de6677519ee78/skills/vue-testing-best-practices
    Licence
    MIT

    Notice

    « vue-testing-best-practices » (github.com/vuejs-ai, 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.