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
Various libraries like webextension-polyfill expect chrome.runtime.id to be a non-empty string. This causes several issues integrating sinon-chrome such as mozilla/webextension-polyfill#236 and #103. While sinon-chrome can't guess the exact id, using something like "testid" (suggested in mozilla/webextension-polyfill#218 (comment)) seems to work pretty well. Alternatively we could use a random string of lowercase letters so it's not a hard coded value.
The text was updated successfully, but these errors were encountered:
Various libraries like
webextension-polyfill
expectchrome.runtime.id
to be a non-empty string. This causes several issues integratingsinon-chrome
such as mozilla/webextension-polyfill#236 and #103. Whilesinon-chrome
can't guess the exact id, using something like"testid"
(suggested in mozilla/webextension-polyfill#218 (comment)) seems to work pretty well. Alternatively we could use a random string of lowercase letters so it's not a hard coded value.The text was updated successfully, but these errors were encountered: