From da57ae740d30b1c8d1616028139eb96e82157170 Mon Sep 17 00:00:00 2001 From: Peter van der Zee Date: Thu, 19 Apr 2018 09:09:08 -0700 Subject: [PATCH] Add `ast: true` to transform options for jest Summary: This should (at least partially) fix testing for OSS as per https://github.com/facebook/react-native/commit/f8d6b97140cffe8d18b2558f94570c8d1b410d5c#r28647044 Might be related to not locking down the Babel version, will do that in a different commit. Reviewed By: mjesun Differential Revision: D7685279 fbshipit-source-id: f00febfad2cec31b7e11996ee8efa2c96b44477b --- jest/preprocessor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jest/preprocessor.js b/jest/preprocessor.js index 563ad0389..18ef328e5 100644 --- a/jest/preprocessor.js +++ b/jest/preprocessor.js @@ -46,6 +46,7 @@ module.exports = { localPath: file, options: { assetDataPlugins: [], + ast: true, // needed for open source (?) https://github.com/facebook/react-native/commit/f8d6b97140cffe8d18b2558f94570c8d1b410d5c#r28647044 dev: true, inlineRequires: true, minify: false,