Pular para o conteúdo
Kitbay
Skill

vue-testing-best-practices

MITAtualizado em 13 de nov. de 202651.383Estrelas no GitHub

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

O que a skill ensina

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.

O que faz

  • 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