From e1f2515ac5ee8521b7d2301b45f72bfd3649111b Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Mon, 25 Apr 2022 09:17:28 +0200 Subject: [PATCH] chore: add missing `throw` --- packages/jest-config/src/normalize.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest-config/src/normalize.ts b/packages/jest-config/src/normalize.ts index 0086b64ec97f..43d82bfb8c64 100644 --- a/packages/jest-config/src/normalize.ts +++ b/packages/jest-config/src/normalize.ts @@ -576,7 +576,7 @@ export default async function normalize( options.testRunner = require.resolve('jest-jasmine2'); } catch (error: any) { if (error.code === 'MODULE_NOT_FOUND') { - createConfigError( + throw createConfigError( 'jest-jasmine is no longer shipped by default with Jest, you need to install it explicitly or provide an absolute path to Jest', ); }