Skip to content

Feat/vitest #681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from
Open

Feat/vitest #681

wants to merge 14 commits into from

Conversation

LoTerence
Copy link
Member

@LoTerence LoTerence commented Apr 21, 2025

Fixes #670

Changes

  • install vitest and required dependencies
  • configured vitest
  • migrate old jest tests to vitest
  • reinstalled package-lock.json and node_modules
  • uninstalled jest and its dependencies

Minor changes:

  • added named volume for node_modules to docker compose. The vite container wasn't working on windows before, and naming the volume helped to debug it.
  • installed package eslint-config-prettier to fix a linter issue, since eslint got updated to version 9.25.1 in the new package-lock.json
  • linted frontend files - mostly effected changes to tailwind classnames order in some components

How it works

In the /frontend folder, run the command:

npm run test

It should say all tests pass, although there are some warnings:
image

How to test this PR

  • make sure npm run test works.
  • please make sure the new npm packages and docker compose works on your machine
  • You might have to reinstall node_modules to get it to work: rm -rf node_modules && npm i
  • make sure npm run lint works

@LoTerence LoTerence requested a review from bennyv8 April 22, 2025 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate frontend unit tests to Vitest
1 participant