Vue testing best practices
Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.From its SKILL.md
npx -y skills add antfu/skills --skill vue-testing-best-practicesAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
2.1 KB, 405 tokens by cl100k_base, as published. Nobody here has run it
Vue.js testing best practices, patterns, and common gotchas.
Testing
- Setting up test infrastructure for Vue 3 projects → See testing-vitest-recommended-for-vue
- Tests keep breaking when refactoring component internals → See testing-component-blackbox-approach
- Tests fail intermittently with race conditions → See testing-async-await-flushpromises
- Composables using lifecycle hooks or inject fail to test → See testing-composables-helper-wrapper
- Getting "injection Symbol(pinia) not found" errors in tests → See testing-pinia-store-setup
- Components with async setup won't render in tests → See testing-suspense-async-components
- Snapshot tests keep passing despite broken functionality → See testing-no-snapshot-only
- Choosing end-to-end testing framework for Vue apps → See testing-e2e-playwright-recommended
- Tests need to verify computed styles or real DOM events → See testing-browser-vs-node-runners
- Testing components created with defineAsyncComponent fails → See async-component-testing
- Teleported modal content can't be found in wrapper queries → See teleport-testing-complexity
Reference
What ships with it: 13 files
61.2 KB alongside SKILL.md
reference/
- async-component-testing.md4.8 KB
- teleport-testing-complexity.md4.0 KB
- testing-async-await-flushpromises.md5.1 KB
- testing-browser-vs-node-runners.md5.5 KB
- testing-component-blackbox-approach.md4.6 KB
- testing-composables-helper-wrapper.md6.0 KB
- testing-e2e-playwright-recommended.md6.4 KB
- testing-no-snapshot-only.md6.1 KB
- testing-pinia-store-setup.md6.1 KB
- testing-suspense-async-components.md6.3 KB
- testing-vitest-recommended-for-vue.md4.9 KB
- LICENSE.md1.1 KB
- SYNC.md162 B