msw
msw copied to clipboard
chore: updates vitest configuration to ESM
Vitest (and Vite) Commonjs build is deprecated and will be removed in a future version. There is a console warning when running tests indicating to update to use Vites ESM build.
Relevant docs from Vite: https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated
This PR updates the vitest config files to use an .mts
extension and therefore use the Vite ESM build.