-
-
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
[Bug]: Upgrading from 29.6.2 to 29.6.4 breaks the tests #14498
Comments
We'll need a reduced reproduction in order to debug this I'm afraid - that project is huge. |
I don't know where to start unfortunately in order to minimize it... |
Hello, we also encountered this problem on two of our projects. Out of 1500 tests, one describe fell, where call one static method.
When I added logs, I can understand from them that the function someMethod was not executed. someMethod is a public static method. We have tests for other static method, they work out. The function itself, I facilitated, and made
|
Without a minimal reproduction I won't be able to debug this. Most accurate way to pin down the regression would probably be to run Jest from this repository in your project while using |
Mysteriously failing tests after Jest upgrade makes me think of #14133 and #14375. In the CI of The problem occurs in the Here I talk about older releases. Looking through the change log of Jest 29.6.3, #14414 looks similar to what I described above. Can it be that |
Also seeing test failures when upgrading from 29.6.2 -> 29.6.4. Not sure what is causing the issue. |
Same here! |
If anybody has a minimal reproduction, I'd love to see one 🙂 |
Unsure if this'll help anyone but I had an issue updating from The error was
Forcing the resolution of |
Interesting... Do you have a full trace? Sounds like a missing dependency |
Seemingly something in jest-circus, sorry I should have included that in my original message. |
I did not notice any issue when upgrading This is one of the error I get which is not a timeout of test error as far as I understand:
|
Hi guys, I got the same problem after update from In my case it was related to the beforeEach(() => { jest.resetAllMocks(); }); After updating to In trial and error I changed the script to the following code and it worked again. beforeEach(() => { jest.restoreAllMocks(); }); @SimenB I'm studying |
Hello everyone, I was running into the same issue after upgrading jest to Eg:
I hope this helps. |
Changing |
Unfortunately, maplibre-gl-js test code doesn't have |
I have the same issue |
I encountered some errors while attempting to upgrade the package. Initially, I tried switching from I shuffled the tests around and made adjustments to the spy functions. Ran into some 'undefined' cases which I guess could be related to this |
Without reproductions, it's hard to really do anything here, so I'll close this. If anybody is able to provide reproductions, please open a new issue. |
I have provided a way to reproduce this issue. |
If you can fork that and chip away as much as possible while the issue still reproduces, that'd might make it minimal? |
I'll see what I can do. |
Seems like my issue was the same as everyone else here with the |
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. |
Version
29.6.4
Steps to reproduce
Clone the following repo:
https://github.com/maplibre/maplibre-gl-js
run
npm i
run
npx jest ./src/ui/map.test.ts
Unit test fail
Expected behavior
The tests should not fail as this wasn't a major version release and there should not be breaking changes.
Actual behavior
The tests started failing, this can also be observed in our PR which uses dependabot: maplibre/maplibre-gl-js#3042
Additional context
Not sure, I tired to debug the tests and understand why they started failing, but I'm not sure what's the root cause.
Sorry that I can't do a minimal reproduction, but I wouldn't know where to start...
Environment
The text was updated successfully, but these errors were encountered: