File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { Logger } from 'bs-logger'
1+ import { createLogger } from 'bs-logger'
22import stringifyJson from 'fast-json-stable-stringify'
33import { existsSync } from 'fs'
44import { stringify as stringifyJson5 } from 'json5'
@@ -9,7 +9,8 @@ import { CliCommand } from '..'
99import { createJestPreset } from '../../config/create-jest-preset'
1010import { backportJestConfig } from '../../util/backports'
1111
12- export const run : CliCommand = async ( args : Arguments , logger : Logger ) => {
12+ export const run : CliCommand = async ( args : Arguments /*, logger: Logger*/ ) => {
13+ const nullLogger = createLogger ( { targets : [ ] } )
1314 const file = args . _ [ 0 ]
1415 const filePath = join ( process . cwd ( ) , file )
1516 if ( ! existsSync ( filePath ) ) {
@@ -28,7 +29,7 @@ export const run: CliCommand = async (args: Arguments, logger: Logger) => {
2829
2930 // migrate
3031 // first we backport our options
31- const migratedConfig = backportJestConfig ( logger , actualConfig )
32+ const migratedConfig = backportJestConfig ( nullLogger , actualConfig )
3233 // then we check if we can use `preset`
3334 if ( ! migratedConfig . preset && args . jestPreset ) {
3435 migratedConfig . preset = 'ts-jest'
You can’t perform that action at this time.
0 commit comments