Open ibesora opened 2 years ago
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. Thanks!
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 https://github.com/kulshekhar/ts-jest/issues/281#issuecomment-500780488
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. Thank you!
I am facing the same problem on version 28.0.1, @ahnpnl is there any update on this?
the protomaps does not do preserveContEnums
in the tsconfig, so it is not preserved in the transpiled output
you can't import something that is not there
the protomaps does not do preserveContEnums in the tsconfig, so it is not preserved in the transpiled output you can't import something that is not there
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 Circular imports
issue. However, I am still trying my test to find or come up with a solution.
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?
"jest": "29.7.0",
"ts-jest": "29.1.2",
I've had success mocking the enum and returning an object instead.
Can you show your solution ? I'm having this frustrating issue too.
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 https://github.com/kulshekhar/ts-jest/issues/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