From a980c1c860663db7174675a89ebce808219ac547 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Fri, 30 Oct 2020 10:43:42 +0100 Subject: [PATCH] attempt to resolve default prettier path in normalize --- packages/jest-config/src/normalize.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/jest-config/src/normalize.ts b/packages/jest-config/src/normalize.ts index db7c10138c27..6d6148f6ed3b 100644 --- a/packages/jest-config/src/normalize.ts +++ b/packages/jest-config/src/normalize.ts @@ -648,6 +648,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 = {