yeatmanlab / roar-dashboard

A dashboard to administer ROAR assessments
https://roar.education
Other
4 stars 4 forks source link

Introduce Vitest for unit and snapshot testing #736

Closed maximilianoertel closed 2 months ago

maximilianoertel commented 2 months ago

Proposed changes

This PR adds Vitest to the project for the purpose of progressively introducing unit and snapshot testing to the project.

For compatibility purposes, this PR also upgrades the Vite dependencies to their latest version as well as upgrades from @vueuse/head to @unhead/vue. The latter was necessary due to some incompatibilities with the latest Vite version and the sunset notice provided on the @vueuse/head repo.

Once the first tests have been written, we should consider extending the CI workflows to run the tests against PRs as well as measure and publish test coverage.

Types of changes

Checklist

Justification of missing checklist items

n/a

Further comments

n/a

github-actions[bot] commented 2 months ago

Visit the preview URL for this PR (updated for commit 5c1328f):

https://roar-staging--pr736-tst-add-vitest-for-u-65lzpngj.web.app

(expires Mon, 19 Aug 2024 20:12:18 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 2631e9c58fd0104ecbfddd72a62245ddac467460

cypress[bot] commented 2 months ago



Test summary

32 0 0 0Flakiness 0


Run details

Project roar-dashboard-e2e
Status Passed
Commit 5c1328fc17
Started Aug 12, 2024 8:12 PM
Ended Aug 12, 2024 8:14 PM
Duration 02:19 💡
OS Linux Ubuntu -
Browser Edge 127

View run in Cypress Cloud ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud