You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I update vitest from 0.18, which works fine, to 0.19 using happy-dom, it fails because of missing jsdom. Installed via pnpm. PNPM tries to resolve undeclared dependencies to jsdom, happy-dom & @edge-runtime/vm in vitest 0.19 which, in turn, fails if any of those three deps are not explicitly installed by the user.
> vitest
DEV v0.19.0 /Users/bb/Work/happy-dom-repro-544
Test Files no tests
Tests no tests
Time 202ms (in thread 0ms, Infinity%)
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Vitest caught 1 unhandled error during the test run. This might cause false positive tests.
Please, resolve all the errors to make sure your tests are not affected.
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Error: Errors occurred while running tests. For more information, see serialized error.
❯ Object.runTests node_modules/.pnpm/vitest@0.19.0_happy-dom@6.0.4/node_modules/vitest/dist/chunk-vite-node-externalize.a2813ad7.mjs:7046:17
❯ process.processTicksAndRejections node:internal/process/task_queues:95:5
❯ async file:/Users/bb/Work/happy-dom-repro-544/node_modules/.pnpm/vitest@0.19.0_happy-dom@6.0.4/node_modules/vitest/dist/chunk-vite-node-externalize.a2813ad7.mjs:9451:9
❯ Vitest.runFiles node_modules/.pnpm/vitest@0.19.0_happy-dom@6.0.4/node_modules/vitest/dist/chunk-vite-node-externalize.a2813ad7.mjs:9465:12
❯ Vitest.start node_modules/.pnpm/vitest@0.19.0_happy-dom@6.0.4/node_modules/vitest/dist/chunk-vite-node-externalize.a2813ad7.mjs:9384:5
❯ startVitest node_modules/.pnpm/vitest@0.19.0_happy-dom@6.0.4/node_modules/vitest/dist/chunk-vite-node-externalize.a2813ad7.mjs:10134:5
❯ CAC.start node_modules/.pnpm/vitest@0.19.0_happy-dom@6.0.4/node_modules/vitest/dist/cli.mjs:664:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: {
"errors": [
[Error: Failed to resolve import "jsdom" from "node_modules/.pnpm/vitest@0.19.0_happy-dom@6.0.4/node_modules/vitest/dist/chunk-defaults.408a0cfe.mjs". Does the file exist?],
],
}
Reproduction
Use the following repro (originally for another issue):
@sheremet-va Yeah, because I'm using happy-dom ;) If I install jsdom additionally to happy-dom, the same error appears for @edge-runtime/vm...
benbender
changed the title
Vitest 0.19 fails to run because of missing jsdom
Vitest 0.19 fails to run because of extended, unresolved dependencies
Jul 25, 2022
Describe the bug
If I update
vitest
from 0.18, which works fine, to 0.19 usinghappy-dom
, it fails because of missingjsdom
. Installed viapnpm
.PNPM
tries to resolve undeclared dependencies tojsdom
,happy-dom
&@edge-runtime/vm
invitest
0.19 which, in turn, fails if any of those three deps are not explicitly installed by the user.I think this may be caused by #1667
Reproduction
Use the following repro (originally for another issue):
https://github.com/benbender/happy-dom-repro-544
update
vitest
to 0.19 to see the dependency-issue.System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: