File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,20 +147,22 @@ async function loadBabelOptionsAsync(
147147 return addIstanbulInstrumentation ( options , jestTransformOptions ) ;
148148}
149149
150- const createTransformer : CreateTransformer = ( userOptions = { } ) => {
150+ const createTransformer : CreateTransformer = userOptions => {
151+ const inputOptions = userOptions ?? { } ;
152+
151153 const options = {
152- ...userOptions ,
154+ ...inputOptions ,
153155 caller : {
154156 name : 'babel-jest' ,
155157 supportsDynamicImport : false ,
156158 supportsExportNamespaceFrom : false ,
157159 supportsStaticESM : false ,
158160 supportsTopLevelAwait : false ,
159- ...userOptions . caller ,
161+ ...inputOptions . caller ,
160162 } ,
161163 compact : false ,
162- plugins : userOptions . plugins ?? [ ] ,
163- presets : ( userOptions . presets ?? [ ] ) . concat ( jestPresetPath ) ,
164+ plugins : inputOptions . plugins ?? [ ] ,
165+ presets : ( inputOptions . presets ?? [ ] ) . concat ( jestPresetPath ) ,
164166 sourceMaps : 'both' ,
165167 } as const ;
166168
You can’t perform that action at this time.
0 commit comments