Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

A “Wordle” on Test Driven Development in Vue.js

Get access to the most comprehensive Vue.js video library in the world. Over 300 video lessons including the newest Vue 3 features.

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()