-
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
Upgrade from nwsapi 2.2.5 to 2.2.6 started issue with JEST + RTL test cases #90
Comments
@sagar1111212121 |
Hi @dperini Thanks for the quick response. Please find below screenshots for your reference There are almost 100 tests started failing because of above error. And all of these were working just fine before the upgrade. |
Also another fix is override the version of the peer dependency:
|
@sagar1111212121 Thank you for raising the alert on this and for giving me a starting point about where to look for the fix. |
@sagar1111212121 I'm also having this problem and explicitly adding a dependency can be used as a workaround |
We are also facing the same issue, downgrading to 2.2.5 worked. |
@sagar1111212121 |
For anyone using yarn, this workaround worked for me: "resolutions": {
"**/nwsapi": "2.2.5"
} |
For anyone using pnpm, put this in your {
"pnpm": {
"overrides": {
"nwsapi": "2.2.5"
}
}
} |
hi, im also getting this issue when using jest 29.6.0 and jsdom 22.1.0 |
Thanks for reporting this. Please consider pasting your error message as text instead of images so folks Googling the same error message can find pages like these. 🙏🏻 |
@dperini We are also facing this issue and it is blocking our release. Unfortunately we can't use the workaround in our case. Any idea when 2.2.7 will be released with the fix? |
@aishwarya-tw and all affected users. |
@dperini Thanks for the quick action I am checking it now and should be able to update in sometime. |
Yah, Didn't realize this. But will keep this in mind :) |
@dperini Thank you so much for the quick action and timely release! 🙏🏼 I can confirm that the fix is working for us and our build pipeline is running all the way through! |
@dperini - You rock. All 1400 test cases passed without any issue now :) Thanks for the quick resolution. |
@dperini thank you so much for quick response, all my test cases are working again now. :) |
@sagar1111212121 @val1984 @vonny29 and all users of "nwsapi" ... I am now tackling ':focus-visible' pseudo-class which in my tests is already working well (targeting release 2.2.8).
and, on request, in the queue I also have an easy one like the :defined pseudo-class which have been requested by some. |
@dperini When ever the component is rendered, it is taking the active state background-color even though it isn't set to active. Please look into this issue. |
@lakshman0369 |
Reporting similar issue to the above Assertion:
It fails because during the test background-color has the hover rgb value rather than the white value it is expected to have. Hover / active styles seem to be getting applied erroneously during the test. 2.2.5 is good but this problem starts on 2.2.6. |
@lakshman0369 @Xe11o |
Hi @dperini When you expect to publish this fix it to npm? |
Hello @dperini and team,
I found that upgrading nwsapi from 2.2.5 to 2.2.6 created an issue with the existing test cases written with JEST and RTL. it was all working fine in 2.2.5 just before sometime but as soon as, we did fresh npm install and almost 205 test cases stated failing which just worked fine in last couple of pipelines.
I dont know the exact reason for failures other than test log (Mostly around UserEvent.click and screen.getByTestId started failing)
We faced similar kind of issue when it was upgraded from 2.2.2 to 2.2.3 (Later 2.2.4 was released with quick fix which worked).
Is there anyone facing similar issue?
The text was updated successfully, but these errors were encountered: