Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 24, 2019
1 parent dbdda40 commit fee16dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/jest-config/src/normalize.ts
Expand Up @@ -48,7 +48,10 @@ const createConfigError = (message: string) =>
const mergeOptionWithPreset = (
options: Config.InitialOptions,
preset: Config.InitialOptions,
optionName: 'moduleNameMapper' | 'transform',
optionName: keyof Pick<
Config.InitialOptions,
'moduleNameMapper' | 'transform'
>,
) => {
if (options[optionName] && preset[optionName]) {
options[optionName] = {
Expand Down

0 comments on commit fee16dd

Please sign in to comment.