react-native-typescript-transformer icon indicating copy to clipboard operation
react-native-typescript-transformer copied to clipboard

Jest tests fail with RN >= 52 because transformer doesn't return transpiled text, only ast

Open ds300 opened this issue 7 years ago • 2 comments
trafficstars

from https://github.com/ds300/react-native-typescript-transformer/issues/39#issuecomment-356317354

ds300 avatar Jan 10 '18 22:01 ds300

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

ds300 avatar Jan 17 '18 22:01 ds300

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.

vovkasm avatar Jan 18 '18 17:01 vovkasm