msw icon indicating copy to clipboard operation
msw copied to clipboard

chore: updates vitest configuration to ESM

Open KaiSpencer opened this issue 8 months ago • 0 comments

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

Screenshot 2024-06-24 at 13 38 48

This PR updates the vitest config files to use an .mts extension and therefore use the Vite ESM build.

KaiSpencer avatar Jun 24 '24 12:06 KaiSpencer