Simple code:
ow([123], 'myValues', ow.array.ofType(ow.string))
All of a sudden started giving me the following error message:
'(array `myValues`) Expected `e` to be of type `string` but received type `number`'
Previously it was giving me the right message
'(array `myValues`) Expected argument to be of type `string` but received type `number`'
This behavior happens during jest test run.
The changes I made in my package.json/devDependencies:
- "jest": "^26.6.3",
+ "jest": "^27.5.1",
- "@types/jest": "^24.0.11",
+ "@types/jest": "^27.4.1",
- "ts-jest": "^26.5.5",
+ "ts-jest": "^27.1.3",
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too