-
Notifications
You must be signed in to change notification settings - Fork 39
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
Last version is breaking my tests #135
Comments
I also get:
|
I can confirm my tests run by downgrading to 2.2.13: |
Wow, I spend half of my day finding out what would be the issue in my tests. The last package that I tried to downgrade was this one, and the update from On my side I had a different error :
|
same issues here, updating to the newest 2.2.15 solved the issues and tests are working again. |
Updating to 2.2.15 didn't solve this issue: thymikee/jest-preset-angular#2883 |
Adding the following to our package json fixed it for us.
|
The latest version of `nwsapi` (which is a peer dependency of `jest-environment-jsdom > jsdom`) causes `ReferenceError: document is not defined` errors in some of our tests. We're pinning the old working version until dperini/nwsapi#135 is resolved.
The latest version of `nwsapi` (which is a peer dependency of `jest-environment-jsdom > jsdom`) causes `ReferenceError: document is not defined` errors in some of our tests. We're pinning the old working version until dperini/nwsapi#135 is resolved.
The latest version of `nwsapi` (which is a dependency of `jest-environment-jsdom > jsdom`) causes `ReferenceError: document is not defined` errors in some of our tests. We're pinning the old working version until dperini/nwsapi#135 is resolved.
Hi! Please be more carefull next time. We only had nwsapi as sub-dependency for js-dom and we had to override like someone else suggested. |
@maf248 |
@arqex |
@marcelhohn there has been another fix and 2.2.16 is released now. |
Same issue here |
Works for us, thank you! |
Can confirm 2.2.16 is working. after 2.2.14 and 2.2.15 stopped working. Thanks for the quick turn around time on this! 👍🏻 |
Its working again with the latest version (2.2.16), thanks nwsapi team! |
No need to call, maybe improve code coverage, testing or something. I know shit happens, no need to get upset. We've dealt with our shit, just suggesting you deal with yours. |
Hi @dperini, thanks for the quick turnaround! The latest version (2.2.16) has fixed the
|
Absolutely not upset, I just wanted to stress on the fact that "toNodeList()" was added on November 4 so I left almost one month for developers to test and report failures, discrepancies and regressions but as you can see I got nothing. Then there is this one interesting discussion going on in Angular issues: Finally I can assure I am running thousands of tests both the new set from wpt and those specific from jsdom and my own set. It doesn't matter how many test I run for myself I will always be short on them, I could not follow all the depending projects in all these years. But yes, from my side I am trying to change this, the remaining steps to achieve perfection is on developers shoulders. To close this with positive aptitudes I am willing to invest more time writing documentation, speaking with the developers about the secret side of this to ensure the power of nwsapi is used in full, there are a lot of hidden functionalities which where not disclosed but they would be extremely useful for developers. If you also think this is possible and necessary and you are willing to help, please help me set up some quick live meeting with the right developers in your organization and in the other teams/project too. |
The latest version of `nwsapi` (which is a dependency of `jest-environment-jsdom > jsdom`) causes `ReferenceError: document is not defined` errors in some of our tests. We're pinning the old working version until dperini/nwsapi#135 is resolved.
@thinkasany @weinnandhasanion |
The latest version of `nwsapi` (which is a dependency of `jest-environment-jsdom > jsdom`) causes `ReferenceError: document is not defined` errors in some of our tests. We're pinning the old working version until dperini/nwsapi#135 is resolved.
The latest version of `nwsapi` (which is a dependency of `jest-environment-jsdom > jsdom`) causes `ReferenceError: document is not defined` errors in some of our tests. We're pinning the old working version until dperini/nwsapi#135 is resolved.
In case anyone needs this info you can lock your dependency resolutions to the last working version like so (in your NPM:
Yarn
|
ReferenceError: document is not defined
at ../../node_modules/nwsapi/src/nwsapi.js:216:21
And it's true, that line should use
doc.
orglobal.document
, butdocument
is really undefined.The text was updated successfully, but these errors were encountered: