We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a88e13e commit 90386fcCopy full SHA for 90386fc
1 file changed
packages/jest-resolve/src/index.js
@@ -380,22 +380,20 @@ const createNoMappedModuleFoundError = (
380
regex,
381
resolver,
382
) => {
383
- const error = new Error(
384
- chalk.red(`${chalk.bold('Configuration error')}:
+ const error = new Error(`
385
386
Could not locate module ${chalk.bold(moduleName)} mapped as:
387
-${chalk.bold(updatedName)}).
+${chalk.bold(updatedName)}.
388
389
Please check your configuration for these entries:
390
{
391
"moduleNameMapper": {
392
"${regex.toString()}": "${chalk.bold(mappedModuleName)}"
393
},
394
"resolver": ${chalk.bold(String(resolver))}
395
-}`),
396
- );
+}`);
397
398
- error.name = '';
+ error.name = chalk.red(`${chalk.bold('Configuration error')}`);
399
400
return error;
401
};
0 commit comments