Open hvasc opened 2 years ago
Jest 29
Invalid return value:
`process()` or/and `processAsync()` method of code transformer found at
"/Users/username/dev/project/node_modules/yaml-jest/dist/index.js"
should return an object or a Promise resolving to an object. The object
must have `code` property with a string of processed code.
This error may be caused by a breaking change in Jest 28:
https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer
Code Transformation Documentation:
https://jestjs.io/docs/code-transformation
Workaround for this issue: https://github.com/sumwatshade/jest-transform-yaml/issues/19#issuecomment-1232857013 - just replace jest-transform-yaml in the example with yaml-jest.
in Upgrade Guides say They must always return an object: