Skip to content

Conversation

djhi
Copy link
Collaborator

@djhi djhi commented Jan 27, 2025

Problem

  • Jest is slow
  • Jest is unreliable (bundling issues, performances, etc.)
  • JSDom has many differences from a real browser
  • JSDom is incomplete
  • We use vite already

Solution

Use Vitest browser to test react-admin

  1. Replace jest calls with vitest equivalents
  2. Replace testing-library calls with vitest equivalents (https://vitest.dev/guide/browser/interactivity-api.html)
  3. Cleanup test output (probably linked to the second point above
  4. Update vite dependencies across the monorepo

How To Test

Run the usual test commands

Additional Checks

  • The PR targets master for a bugfix, or next for a feature
  • The PR includes unit tests (if not possible, describe why)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP Work In Progress
Development

Successfully merging this pull request may close these issues.

1 participant