Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(preprocessor): return object, not just code (#33576)
Summary: Jest 28 will error if only a string is returned from a transfomer, it needs to be an object of `{code: string, map?: object}`. Returning an object has been supported since jestjs/jest#2290, released in Jest v20. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [Internal] [Fixed] - Return object from Jest preprocessor Pull Request resolved: #33576 Test Plan: Green CI? Reviewed By: motiz88 Differential Revision: D35426748 Pulled By: robhogan fbshipit-source-id: 3edb79b62b2d34274be192061817d3fcd8a7ba17
- Loading branch information