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 13, 2023
1 parent 09abc95 commit 578f7b7
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 @@ -561,6 +561,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 578f7b7

Please sign in to comment.