We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
babel
1 parent a844b93 commit 9617029Copy full SHA for 9617029
src/cli/config/init.ts
@@ -41,6 +41,12 @@ export const run: CliCommand = async (args: CliCommandArgs /* , logger: Logger *
41
const tsconfig =
42
askedTsconfig === 'tsconfig.json' ? undefined : (askedTsconfig as TsJestTransformerOptions['tsconfig'])
43
const pkgJsonContent = isPackageJsonExisted ? JSON.parse(readFileSync(pkgFile, 'utf8')) : {}
44
+ if (shouldPostProcessWithBabel) {
45
+ console.warn(
46
+ `The option --babel is deprecated and will be removed in the next major version.` +
47
+ ` Please specify 'js' option value (see more with npx ts-jest help) if you wish 'ts-jest' to process 'js' with TypeScript API or Babel.`,
48
+ )
49
+ }
50
51
if (isPackageJsonConfig && !isJestConfigFileExisted) {
52
throw new Error(`File ${file} does not exists.`)
0 commit comments