antfu avatar

Vue Testing Best Practices

antfu/skills
4.1k

This skill provides best practices, patterns, and solutions for testing Vue.js applications, particularly for Vue 3 projects. It covers setting up test infrastructure, component testing, mocking, handling asynchronous and complex components, and end-to-end testing with tools like Vitest and Playwright. It's ideal for developers seeking to improve their testing strategies and avoid common pitfalls in Vue.js development.

npx skills add https://github.com/antfu/skills --skill vue-testing-best-practices

Vue.js testing best practices, patterns, and common gotchas.

Testing

Reference

GitHub Owner

Owner: antfu

Files

testing-component-blackbox-approach

testing-async-await-flushpromises

testing-composables-helper-wrapper

testing-pinia-store-setup

testing-suspense-async-components

testing-no-snapshot-only

testing-browser-vs-node-runners

async-component-testing

teleport-testing-complexity

SKILL.md


name: vue-testing-best-practices version: 1.0.0 license: MIT author: github.com/vuejs-ai description: Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.

Vue.js testing best practices, patterns, and common gotchas.

Testing

Reference

More skills