-
-
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
TypeError: Cannot read property '_cookieJar' of null #8613
Comments
Have you tried newer version of JSDOM, e.g. https://www.npmjs.com/package/jest-environment-jsdom-fifteen? Jest uses pretty outdated one because of Node 6 support (will be dropped in next major). |
I just tried |
So it looks like it's not an issue with Jest but with jsdom or the way you use the library in tests. I'm gonna close this issue, as we can't help on that. |
@chillyond did you figure this out? I am running into the same issue |
Yes, it seems if you listening |
Hey @chillyond I am running into the same error and Could you explain your solution a bit better? Where do you add the My stacktrace:
|
@cdimitroulas Yes, |
In my case, the |
@beaniemonk can you elaborate on how you fixed that? |
Sure, So on the server side I had this (short version):
(This specific configuration is OK for our specific case, but may or may not be a good idea for yours). On the client side, I did not specify this option, so presumably it was rolling with the default
This error went away for me. This mismatch should not be an issue normally, as far as I know -- it's something specific to the Jest/JSDOM environment. @chillyond's suggestion of adding a |
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
Connect to a socket.io cause an this error:
To Reproduce
Expected behavior
no errors log
The text was updated successfully, but these errors were encountered: