Skip to content

Commit 6f39d79

Browse files
committed
attempt to resolve default prettier path in normalize
1 parent cb38fcc commit 6f39d79

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/jest-config/src/normalize.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,10 @@ export default function normalize(
562562
options.coverageDirectory = path.resolve(options.rootDir, 'coverage');
563563
}
564564

565+
if (!options.prettierPath) {
566+
options.prettierPath = DEFAULT_CONFIG.prettierPath;
567+
}
568+
565569
setupBabelJest(options);
566570
// TODO: Type this properly
567571
const newOptions = ({

0 commit comments

Comments
 (0)