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 with get() when the element must exist and find() when it may not, using data-test attributes rather than classes. Every DOM-updating method returns a promise and is awaited; anything Vue's reactivity does not track — a request, a timer — needs flushPromises() as well. A component's environment arrives through the global mounting options.

Detailed Resources:

  • examples/core.md — mounting, slots, get/find/findAll, trigger, setValue
  • examples/async.mdflushPromises, nextTick, debounced input, async setup() under Suspense
  • examples/composables.md — through a component, in isolation, and with injected dependencies
  • examples/mocking.md — the four global seams: plugins, stubs, mocks, provide — and a custom mount that composes them
  • reference.md — wrapper API tables, mounting options, emitted-event patterns, debug checklist

Which path applies

Installs
25
GitHub Stars
24
First Seen
Apr 7, 2026
web-testing-vue-test-utils — agents-inc/skills