Skip to content

Conversation

manerlan
Copy link
Member

Sets up the testing environment for the project using Vitest and React Testing Library.

Changes:

  • Added Vitest as the test runner.
  • Added jsdom for a browser-like test environment.
  • Added React Testing Library and jest-dom.
  • Added user-event for future interaction tests.
  • Added Vitest configuration to vite.config.ts.
  • Added setupTests.ts for shared test setup.
  • Added an initial component test for FavoritesSidebar to verify that the testing setup works.
  • Ran Prettier on the related files.

For Testing:

  • npm test -- --run
  • npm run lint
  • npm run build

Closing this issue and making a new issue for the required snapshot tests, further component tests for props/state/user interaction, and API mocking.

@manerlan manerlan requested a review from a team as a code owner September 18, 2026 12:07
Copy link
Member

@oscarba oscarba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vitest implementert, funker.

@oscarba oscarba merged commit f6357e7 into main Sep 18, 2026
@oscarba oscarba deleted the 12-implement-vitest-and-initial-test branch September 18, 2026 12:12
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Vitest (and potentially React Testing Library), and add relevant tests
2 participants