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 Jan 28, 2023
1 parent 6243097 commit 0c84238
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 0c84238

Please sign in to comment.