-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting "Cannot read property 'some' of undefined" when running tests #10489
Comments
Running into the same issue here, can confirm. Any update(s) on this so far? |
@jpabeem I downloaded your repo, I running it and work using yarn. |
Btw, I fixed this problem running |
It’ll work using yarn because yarn doesn’t read the package-lock.json file. The issue only happens when using [email protected], which is pinned in package-lock. |
Can confirm the bug is reproducible from the repo above.
|
I know this bug is specifically about 16.2.2 version, but I was tired of seeing the error in failed tests went ahead and updated. Apparently it doesn't happen anymore after updating jsdom to 16.4.0. |
Came here because I also had a similar issue. We use |
Updating jsdom fixed this for me 👍 |
I had an issue with a bunch of errors like this: ``` TypeError: Cannot read property 'some' of undefined at Object.exports.install (node_modules/whatwg-url/dist/URL.js:84:20) ``` jestjs/jest#10489 (comment) - shows that its an issue with jsdom 16.2.2. I tested by forcing the next newer version 16.3.0 which fixed the problem, so I propose that this dependency be updated.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
Running
jest
when [email protected] is installed results in the error:To Reproduce
Steps to reproduce the behavior:
Install jest, but make sure the jsdom pulled in by
jest-environment-jsdom
is16.2.2
.FWIW, tests seem to pass when
[email protected]
is used, butjest-environment-jsdom
has the version set to ^16.2.2.Expected behavior
Tests should work and pass.
Link to repl or repo (highly encouraged)
https://github.com/bschlenk/jest-some-repro
envinfo
The text was updated successfully, but these errors were encountered: