Setting up Vitest Browser Mode in your CI/CD Pipeline

Tests are great (the whole purpose of this site is to promote better understanding of writing and maintaining frontend tests). But it is very important that they run as part of your CI/CD pipeline

Without actually running, they often have little value.

In this lesson we will cover exactly how to set up Vitest Browser Mode tests in your CI/CD pipeline, such as GitHub Actions.

What is CI/CD pipeline? (Show details)

Your CI/CD pipeline is the actions that run automatically before you merge/deploy.

Normally, after every Git push, something like GitHub Actions will run all your tests to ensure they are passing.

Getting Vitest Browser Mode set up on your CI/CD provider (like GitHub Actions) is quite straightforward.

BTW if you use GitHub Actions, you can probably copy the template here

Loading full lesson...