Skip to content

Commit a980c1c

Browse files
committed
attempt to resolve default prettier path in normalize
1 parent 909bfe2 commit a980c1c

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
@@ -648,6 +648,10 @@ export default async function normalize(
648648
options.coverageDirectory = path.resolve(options.rootDir, 'coverage');
649649
}
650650

651+
if (!options.prettierPath) {
652+
options.prettierPath = DEFAULT_CONFIG.prettierPath;
653+
}
654+
651655
setupBabelJest(options);
652656
// TODO: Type this properly
653657
const newOptions = {

0 commit comments

Comments
 (0)