Skip to content

Tests

For unit tests and coverage, please refer to https://coverage.sortao.com/

After cloning the repository, you can use the following commands:

  1. Testing with hot reloading
Terminal window
pnpm test
  1. Single test
Terminal window
pnpm test run
  1. Single test, and generate a coverage report.
Terminal window
pnpm coverage
# View Report
cd ./coverage
pnpm vite
  1. Run the benchmark
Terminal window
pnpm bench

Since running the full set of tests can be time-consuming, you can also add a path at the end to execute specific test or benchmark test files.