Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Be able to stub out VS code UI in a test (and only a test) #80

Closed
rchiodo opened this issue Jan 13, 2021 · 1 comment
Closed

Comments

@rchiodo
Copy link

rchiodo commented Jan 13, 2021

I frequently find myself wanting to run a VS code command in a test, but that command may bring up other UI that I need the test to force to a specific value.

It would be super useful if there were some way to stub out parts of VS code ui.

Example:

sinon.stub(window, 'showQuickPick').resolves(myQuickPickItem)

This would likely require changes to VS code to support though.

@connor4312
Copy link
Member

Duplicates microsoft/vscode#94746

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants