Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Support extension testing #733
You get an error like the following if you try it:
This is because we inject the
We need to add support for this.
I came up with a workaround for this when writing tests for sourcegraph-string-references using sinon and intercept-require.
This was inspired by sinon-chrome, which I've used in a similar fashion in the past to perform e2e blackbox testing of the bundled background script of a chrome extension.
Maybe this could be a good starting point.