web-testing-vue-test-utils
Installation
SKILL.md
Vue Test Utils Patterns
Quick Guide:
mount()renders a component with its children;shallowMount()stubs them all and is the exception rather than the default. Query withget()when the element must exist andfind()when it may not, usingdata-testattributes rather than classes. Every DOM-updating method returns a promise and is awaited; anything Vue's reactivity does not track — a request, a timer — needsflushPromises()as well. A component's environment arrives through theglobalmounting options.
Detailed Resources:
- examples/core.md — mounting, slots,
get/find/findAll,trigger,setValue - examples/async.md —
flushPromises,nextTick, debounced input, asyncsetup()under Suspense - examples/composables.md — through a component, in isolation, and with injected dependencies
- examples/mocking.md — the four
globalseams: plugins, stubs, mocks, provide — and a custom mount that composes them - reference.md — wrapper API tables, mounting options, emitted-event patterns, debug checklist