diff --git a/src/commands/runtime/namespace/log-forwarding/set.js b/src/commands/runtime/namespace/log-forwarding/set.js index 4c97c579..3ecd588c 100644 --- a/src/commands/runtime/namespace/log-forwarding/set.js +++ b/src/commands/runtime/namespace/log-forwarding/set.js @@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag governing permissions and limitations under the License. */ -const inquirer = require('inquirer') +const { default: inquirer } = require('inquirer') const RuntimeBaseCommand = require('../../../../RuntimeBaseCommand') class SetCommand extends RuntimeBaseCommand { diff --git a/test/commands/runtime/namespace/log-forwarding/set.test.js b/test/commands/runtime/namespace/log-forwarding/set.test.js index 91281dab..2cc8e484 100644 --- a/test/commands/runtime/namespace/log-forwarding/set.test.js +++ b/test/commands/runtime/namespace/log-forwarding/set.test.js @@ -41,7 +41,7 @@ let command, prompt, rtLib beforeEach(async () => { command = new TheCommand([]) prompt = jest.fn() - inquirer.prompt = prompt + inquirer.default.prompt = prompt rtLib = await RuntimeLib.init({ apihost: 'fakehost', api_key: 'fakekey' }) rtLib.logForwarding.getSupportedDestinations = jest.fn().mockReturnValue([{ value: 'destination', name: 'Destination' }]) rtLib.logForwarding.getDestinationSettings = jest.fn().mockReturnValue({ key: 'value' })