Closed hoi4 closed 4 months ago
Hey! Thank you for raising the issue! I will have look and let you know!
Just released a new version to address the issue!! thank you again! Released in 3.7.3 https://github.com/Typescript-TDD/ts-auto-mock/blob/master/CHANGELOG.md
Works like a charm! I greatly appreciate the quick fix! Thank you! 🚀
Error when creating mock of enum with negative value since Typescript 5.4
When upgrading from Typescript
5.3.3
to5.4.5
, some of our tests are failing with the following error message:Debug Failure. False expression: Negative numbers should be created in combination with createPrefixUnaryExpression
This is caused by calling
createHydratedMock
with an interface that includes a property of an enum type with a negative value, e.g.Your environment
3.7.2
5.4.5
v18.19.0
10.2.3