I am trying to figure out a way to unit test functions, which include helper functions included in the vscode extension api, such as **showQuickPick**. Example usage: `vscode.window.showQuickPick(['one', 'two']);`. 

I have been trying to stub and mock those, but while I am not sure if that's even the right way to go, I haven't had any luck with it anyway.

A complete example could look something like: 

**logic.js**

```
export async function unitTestMe(): Promise<string> {
  const quickPickAnswer: string = vscode.window.showQuickPick(['one', 'two']);
  return quickPickAnswer;
}

```

**logic.test.js**

```
import { unitTestMe } from './logic';
describe('should return user input', () => {
  test('', () => {
     const expected: string = 'expect me';
     const actual: string = await unitTestMe();
     expect(actual).to.eql(expected);
  })
})

```