diff --git a/cli/cli.spec.mts b/cli/cli.spec.mts index 293ff7d0a57a..be8959e38cfc 100644 --- a/cli/cli.spec.mts +++ b/cli/cli.spec.mts @@ -90,7 +90,7 @@ const cliSharedBlueprintFiles = { describe('cli', () => { const __filename = fileURLToPath(import.meta.url); const jhipsterCli = join(dirname(__filename), '..', 'bin', 'jhipster.cjs'); - const logger = { verboseInfo: esmocha.fn(), fatal: esmocha.fn(), debug: esmocha.fn() }; + const logger = { verboseInfo: esmocha.fn(), warn: esmocha.fn(), fatal: esmocha.fn(), debug: esmocha.fn() }; const getCommand = esmocha.fn(); let mockCli; let argv; diff --git a/cli/utils.mjs b/cli/utils.mjs index 1094f6fe16d3..feea1d91d146 100644 --- a/cli/utils.mjs +++ b/cli/utils.mjs @@ -19,7 +19,7 @@ import chalk from 'chalk'; -import { CLI_LOGGER, createJHipsterLogger } from '../generators/base/support/index.js'; +import { CLI_LOGGER, createJHipsterLogger } from '../lib/utils/logger.js'; export const CLI_NAME = 'jhipster'; export const GENERATOR_NAME = 'generator-jhipster';