If you are switching over to Vite I would strongly suggest also switching off from Jest to Vitest. Vitest handles modules in the same way and doesn’t have to compile to commonjs before running the tests. It shares a config with Vite so you don’t have to configure things in multiple places.
↧