Closed KaiSpencer closed 4 months ago
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.
.mts
This has been released in v2.3.2!
Make sure to always update to the latest version (npm i msw@latest) to get the newest features and bug fixes.
npm i msw@latest
Predictable release automation by @ossjs/release.
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.