This lesson is for members. Join us?
Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!
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