Skip to content

Commit

Permalink
attempt to resolve default prettier path in normalize
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 23, 2022
1 parent 909bfe2 commit a980c1c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/jest-config/src/normalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,10 @@ export default async function normalize(
options.coverageDirectory = path.resolve(options.rootDir, 'coverage');
}

if (!options.prettierPath) {
options.prettierPath = DEFAULT_CONFIG.prettierPath;
}

setupBabelJest(options);
// TODO: Type this properly
const newOptions = {
Expand Down

0 comments on commit a980c1c

Please sign in to comment.