We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ae1c40 commit bbaef7dCopy full SHA for bbaef7d
2 files changed
src/commands/console/open.js
@@ -31,6 +31,7 @@ class OpenCommand extends ConsoleCommand {
31
}
32
33
aioLogger.debug(`opening url ${url}`)
34
+ // eslint-disable-next-line node/no-unsupported-features/es-syntax
35
const { default: open } = await import('open')
36
open(url)
37
test/commands/console/open.test.js
@@ -14,7 +14,9 @@ const config = require('@adobe/aio-lib-core-config')
14
const { STAGE_ENV } = require('@adobe/aio-lib-env')
15
16
const mockOpen = jest.fn()
17
-jest.mock('open', () => ({ default: mockOpen }), { virtual: true })
+jest.unstable_mockModule('open', () => ({
18
+ default: mockOpen
19
+}))
20
const { Command } = require('@oclif/core')
21
22
let command
0 commit comments