Skip to content
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

chrome.runtime.id needs to be a string when using webextension-polyfill #8

Open
AmySteam opened this issue Dec 22, 2020 · 0 comments
Open
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@AmySteam
Copy link

Is your feature request related to a problem? Please describe.

When using webextension-polyfill you have to declare chrome.runtime.id as a string in jest.setup.js, like for example chrome.runtime.id = 'test id' if not you get the following error

Error: This script should only be loaded in a browser extension.

Describe the solution you'd like

I'd like it if jest-chrome could add a random default string or just a hard coded value so I wouldn't have to remember to add this id.

@jacksteamdev jacksteamdev added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants