Skip to content
SkillModel-led405 tokens in use

vue-testing-best-practices

Testing guidance for Vue 3 agents: Vitest, Vue Test Utils, async and Pinia helpers, mocking and Playwright end-to-end tests.

3,364 stars on the repository MIT Licensevuejs-ai/skills · skills/vue-testing-best-practices
npx skills add vuejs-ai/skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing vue-testing-best-practices costs

37tokens idle
405tokens in use
14,939tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Good
  • Frontmatter11/15
  • Structure6/25
  • Examples3/15
  • Output10/15
  • Size15/15
  • Resources15/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Fair
  • Development activity68
  • Maintenance40
  • Community52
  • Maturity32
  • Momentum40

This skill collects testing patterns and gotchas for Vue.js projects. Its SKILL.md lists eleven situations, each linked to a reference, and ends with links to the Vue testing guide, Vue Test Utils, Vitest and Playwright documentation.

The entries cover setting up Vitest, black-box component tests, race conditions fixed with flushPromises, testing composables, Pinia setup errors in tests, async setup with Suspense, snapshot-only tests, Playwright for end-to-end, browser versus Node runners, async components and Teleport content.

What You Get

  • Eleven testing guides linked from one index
  • Advice to test component behavior from the outside so refactors do not break tests
  • Helpers for composables that need lifecycle hooks or inject
  • Notes on Pinia setup, Suspense, async components and Teleport in tests
  • Links to the Vue, Vue Test Utils, Vitest and Playwright docs

Common Use Cases

  • Setting up Vitest in a new Vue 3 project
  • Fixing flaky async component tests
  • Choosing a framework for end-to-end tests of a Vue app

What Makes It Unique

It is built around the failures Vue developers hit in tests, such as missing Pinia injection or teleported content outside the wrapper. It names Vitest and Playwright as the recommended runners.

Under The Hood

The agent loads a short Markdown index and reads the reference that fits the test problem. There are no scripts. The skill lists documentation links but does not tell the agent to fetch them or run commands; the agent writes or edits test files in your project when you ask.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers