Closed KaiSpencer closed 1 day 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
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.