@nuxt/test-utils-edge
doesn't work with vitest
v0.24.0 or later
#15404
Labels
@nuxt/test-utils-edge
doesn't work with vitest
v0.24.0 or later
#15404
Environment
3.0.0-rc.13
@nuxt/test-utils-edge
Version:latest(3.0.0-rc.14-27796957.b60f136)
^0.24.0
Reproduction
https://stackblitz.com/edit/github-raxmub-uprd1m?file=package.json
Describe the bug
With
vitest@^0.24.0
or the latest0.25.0
,nuxt test
will fail, and the following error occurs:We should import
vitest/dist/node.js
rather thanvitest/dist/node.mjs
.Additional context
The extension once changed to
.mjs
in vitest-dev/vitest@692ad34 , but in vitest-dev/vitest#1411 it was reverted and now using.js
.This PR(vitest-dev/vitest#1411) was merged and released as
v0.24.0
so usingv0.23.4
or former can also resolve this issue, but I can't see it as the best way.Logs
No response
The text was updated successfully, but these errors were encountered: