-
Notifications
You must be signed in to change notification settings - Fork 451
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]: Exported enums not working on tests #3397
Comments
Hi, any update on this? |
We just noticed this while working on Jest 28 support, will try to fix this issue. |
Any update on this? Can't test an important part of our app without this. |
Also facing the same issue, hope it will be fixed soon. |
@ibesora @kudryashov13 In case you didn't see, a way to tackle the issue while it's being fixed has been found here #281 (comment) |
Please fix this, it's affecting our core testing functionality |
Hey, any update on this one? I can confirm tests still fail using ts-jest v28.0.8 with jest v28.0.3 and v28.1.3. |
I am facing the same problem on version 28.0.1, @ahnpnl is there any update on this? |
the protomaps does not do |
That doesn't seem to make a difference at all. |
Hey, any update on this? |
I'm having the same problem. It could be a |
I've had success mocking the enum and returning an object instead. |
Hi guys, this is still problem...any news when it will be fixed?
|
Can you show your solution ? |
Version
27.1.4
Steps to reproduce
npm install
npm run test
Expected behavior
Tests should pass
Actual behavior
Tests fail with
TypeError: Cannot read property 'Above' of undefined
Debug log
See it here
It was too long to add it here
Additional context
It seems to be a regression of #281
I can update the protomaps package if needed but it doesn't look like it's doing anything weird
Setting
isolatedModules
tofalse
doesn't change anythingEnvironment
The text was updated successfully, but these errors were encountered: