Replies: 1 comment
-
|
Here @inquirer/prompts is an ESM module, and sinon.stub or similar techniques won't work with ESM imports due to their immutability. Because ESM imports are immutable
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to test a command that leverages
@inquirer/prompts, and cannot figure out how to stub the input prompt.Here is my test
I receive the following error on the
.stubcall.Does anyone have a workaround?
Beta Was this translation helpful? Give feedback.
All reactions