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', ); }