Skip to content

Commit 0c84238

Browse files
committed
attempt to resolve default prettier path in normalize
1 parent 6243097 commit 0c84238

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/jest-config/src/normalize.ts

+4
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,10 @@ export default async function normalize(
561561
options.coverageDirectory = path.resolve(options.rootDir, 'coverage');
562562
}
563563

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

0 commit comments

Comments
 (0)