From 5ea53a94860e3c6db93b5c5e14e654344d54cc55 Mon Sep 17 00:00:00 2001 From: Mihail Bodrov Date: Thu, 14 Nov 2019 00:19:42 +0200 Subject: [PATCH] jest-config: remove needless object spread --- packages/jest-config/src/normalize.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/jest-config/src/normalize.ts b/packages/jest-config/src/normalize.ts index 4a1f9c681e64..c4b491ed3268 100644 --- a/packages/jest-config/src/normalize.ts +++ b/packages/jest-config/src/normalize.ts @@ -53,7 +53,6 @@ const mergeModuleNameMapperWithPreset = ( ) => { if (options['moduleNameMapper'] && preset['moduleNameMapper']) { options['moduleNameMapper'] = { - ...options['moduleNameMapper'], ...preset['moduleNameMapper'], ...options['moduleNameMapper'], }; @@ -66,7 +65,6 @@ const mergeTransformWithPreset = ( ) => { if (options['transform'] && preset['transform']) { options['transform'] = { - ...options['transform'], ...preset['transform'], ...options['transform'], };