Rapid Testing with Vitest: Master Unit Testing & Mocking
Plans from $25/month

This lesson is for members. Join us?

Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!

Set up a DOM Environment in Vitest

In this lesson, learn how to setup the DOM environment with happy-dom or jsdom in order to write tests that rely on your Vue component or composable being used within the DOM.