Testing extensions
For any extension that uses the Sourcegraph API, you may want to write automatedtests to make sure that your extension is using the API correctly.
The@sourcegraph/extension-api-stubs
module is a useful tool to mock the Sourcegraph API and make assertions aboutthe calls that your extensions makes to it.