Vue Test Utils Pitfalls

Use when Vue 3 components are tested with Vue Test Utils: assertions that run before the DOM updates (await trigger and setValue, flushPromises), components with an async setup, isVisible and attachTo, testing v-model through props and the update event, named and scoped slots, emitted events, stubs and shallow mounting (async components, directives, default slots), teleported content, built-in transition stubs, server rendering with renderToString, a real or mocked router, and fake system time.

techmefr Updated

File contents

techmefr/mentis commit 93d41f3622

Frequently asked questions

npx get-skill add techmefr/vue-test-utils-pitfalls