Skip to content
Kitbay
Skill

vue-testing-best-practices

MITUpdated on Nov 13, 202651,383GitHub stars

A copy, kept in the AIRI repository, of a Vue.js testing skill whose frontmatter names the vuejs-ai organisation as author.

What the skill teaches

A copy, kept in the AIRI repository, of a Vue.js testing skill whose frontmatter names the vuejs-ai organisation as author. It is an index that sends the agent to short reference files for specific problems: setting up Vitest for a Vue 3 project, testing components from the outside so tests survive refactors, intermittent failures from async timing, components with async setup or defineAsyncComponent, composables that need lifecycle hooks or inject, Pinia stores that fail with a missing injection error, snapshot-only tests that pass while features break, content rendered through Teleport, choosing a browser or Node runner, and Playwright for end-to-end tests. It links Vue, Vue Test Utils, Vitest and Playwright documentation.

Capabilities

  • Set up Vitest for Vue 3 projects
  • Test components, composables and Pinia stores
  • Fix flaky async component tests
  • Choose Playwright for end-to-end tests