You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use sinon-chrome-webextension.min.js for unit tests in a web browser, it does not stub the browser namespace but rather the chrome namespace. This requires a workaround in the test to remap the namespace to browser from chrome. Ideally the sinon-chrome-webextension.min.js uses the browser namespace as it's intended to mock those APIs.
When trying to use sinon-chrome-webextension.min.js for unit tests in a web browser, it does not stub the
browser
namespace but rather thechrome
namespace. This requires a workaround in the test to remap the namespace tobrowser
fromchrome
. Ideally the sinon-chrome-webextension.min.js uses thebrowser
namespace as it's intended to mock those APIs.I'm not sure if this is the issue, but potentially the problem is related to https://github.com/acvetkov/sinon-chrome/blob/master/webpack.config.js#L34
The text was updated successfully, but these errors were encountered: