Skip to content

Testing

Codecannon come with test environments preconfigured so you can hit the ground running.

There are some tests already written for critical reusable components and business logic like Auth, but not every component and view is tested, so you can choose how much testing you want to do yourself.

Frontend

In the ui service, tests are handled by Vitest. You can run the tests like:

  • npm run test - for dev test runner with watch mode
  • npm run test:ui - for dev test runer with Vitest UI
  • npm run test:run - for test run without watch mode
  • npm run coverage - for test run with coverage

Backend

In the api service test are handled by Pest. You can run the tests using php artisan test command.