Closed rhelmer closed 2 years ago
Can you add a related test? https://github.com/clarkbw/jest-webextension-mock/blob/main/__tests__/tabs.test.js#L106-L113
You can follow similar examples in there https://github.com/clarkbw/jest-webextension-mock/blob/main/__tests__/tabs.test.js#L36-L39
I'm using
webextension-polyfill
andawait browser.tab.reload()
since it doesn't pass a callback when called this way. I've used the same pattern I see used in other parts of the codebase.