-
Notifications
You must be signed in to change notification settings - Fork 215
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
How to make it work with sinon-chrome in tests #218
Comments
How are you running tests? |
@Rob--W - Through mocha. I am using sinon-chrome for test purposes. Meanwhile the workaround that I found is the following -
Having this in the setup.js file, running it first before everything works. |
Just |
Rob--W
changed the title
How to make it work in tests
How to make it work with sinon-chrome in tests
Mar 12, 2020
This was referenced Aug 30, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With the Fix 190 [https://github.com//pull/190], the polyfill does not work on outside extension context.
What about the tests? Have imported in each page in source files using -
import browser from "webextension-polyfill";
which is causing the tests to fail with -
The text was updated successfully, but these errors were encountered: