diff --git a/jest/preprocessor.js b/jest/preprocessor.js index 6c71b795e..17838def4 100644 --- a/jest/preprocessor.js +++ b/jest/preprocessor.js @@ -39,15 +39,12 @@ module.exports = { process(src /*: string */, file /*: string */) { if (nodeFiles.test(file)) { // node specific transforms only - return babelTransformSync( - src, - { - filename: file, - sourceType: 'script', - ...nodeOptions, - ast: false - }, - ).code; + return babelTransformSync(src, { + filename: file, + sourceType: 'script', + ...nodeOptions, + ast: false, + }).code; } const {ast} = transformer.transform({