From 9d5bd507372c7b63e59a94383c3e3091d96409de Mon Sep 17 00:00:00 2001 From: Umair Ansari Date: Mon, 16 Jul 2018 10:59:58 -0700 Subject: [PATCH] - Invalid use of destructuring Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/20178 Differential Revision: D8860733 Pulled By: TheSavior fbshipit-source-id: ec4aa3050755652106dec9ea245394314c862e97 --- jest/preprocessor.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/jest/preprocessor.js b/jest/preprocessor.js index b9ae6faf22af6a..6c71b795ed6dc5 100644 --- a/jest/preprocessor.js +++ b/jest/preprocessor.js @@ -41,10 +41,12 @@ module.exports = { // node specific transforms only return babelTransformSync( src, - Object.assign( - {filename: file}, - {sourceType: 'script', ...nodeOptions, ast: false}, - ), + { + filename: file, + sourceType: 'script', + ...nodeOptions, + ast: false + }, ).code; }