From f54068b20a58f0390ba3b287cb26b51939f5185e Mon Sep 17 00:00:00 2001 From: Ahn Date: Mon, 22 Feb 2021 13:44:10 +0100 Subject: [PATCH] refactor(config): improve cannot process error message (#2392) --- src/utils/messages.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/messages.ts b/src/utils/messages.ts index 501b0b51ff..a43539a08e 100644 --- a/src/utils/messages.ts +++ b/src/utils/messages.ts @@ -17,7 +17,7 @@ export const enum Errors { GotUnknownFileTypeWithBabel = 'Got a unknown file type to compile (file: {{path}}). To fix this, in your Jest config change the `transform` key which value is `ts-jest` so that it does not match this kind of files anymore. If you still want Babel to process it, add another entry to the `transform` option with value `babel-jest` which key matches this type of files.', ConfigNoModuleInterop = 'If you have issues related to imports, you should consider setting `esModuleInterop` to `true` in your TypeScript configuration file (usually `tsconfig.json`). See https://blogs.msdn.microsoft.com/typescript/2018/01/31/announcing-typescript-2-7/#easier-ecmascript-module-interoperability for more information.', MismatchNodeTargetMapping = 'There is a mismatch between your NodeJs version {{nodeJsVer}} and your TypeScript target {{compilationTarget}}. This might lead to some unexpected errors when running tests with `ts-jest`. To fix this, you can check https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping', - CannotCompile = "Unable to process '{{file}}'. Please check your tsconfig.", + CannotCompile = "Unable to process '{{file}}'. Please make sure that `outDir` in your tsconfig is neither `''` or `'.'`.", } /**