react-native-typescript-transformer
react-native-typescript-transformer copied to clipboard
Jest tests fail with RN >= 52 because transformer doesn't return transpiled text, only ast
trafficstars
from https://github.com/ds300/react-native-typescript-transformer/issues/39#issuecomment-356317354
Not really sure what to do about this, except add babel-generator to the mix. But that'd be in the jest transformer wrapper, not in this package
Actually it almost unusable until jest will add ability to handle source maps for transformed files, because retain lines does not help with typescript. Some links:
- https://github.com/facebook/jest/issues/5121
- https://github.com/facebook/jest/pull/5116
- https://github.com/facebook/jest/issues/5113
I did experiments with various variants, and still my transformer looks almost like that from comment.