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 Oct 30, 2020
1 parent cb38fcc commit 6f39d79
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 @@ -562,6 +562,10 @@ export default 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 6f39d79

Please sign in to comment.