This lesson is for members. Join us?
Subscribe now to get instant access to this course, plus a full library of Vue.js courses tailored to the plan you choose.
Tests as documentation
Let’s explore how we can leverage the usage of groups to organize our test suite better.
A meticulously organized test suite not only streamlines processes but also transforms tests into an invaluable source of documentation for you, your team, and any stakeholder in the project. Testing Frameworks often provide us with a series of resources to facilitate organization.
In this lesson, we’ll cover how we can group related tests with a Describe block, and how we can refactor similar tests into a single test generator via Vitest’s .each() helper.
**Topics covered: **
- Vitest Describe Groups
- Vitest describe.each()
Links
- Chapter 1
