Unit Testing

Table of contents


Overview

Unit testing is done using the vitest framework.

Vitest

Vitest is a unit testing framework for testing JavaScript code. It allows you to write tests in a simple and concise manner, and provides tools for running and reporting on the results of those tests.

Running Tests

Tests can be run using the top level run commands:

  • run test --stage [stage] - running all tests
  • run test-gui --stage [stage] - running all tests displaying results in browser ui