fregante / fregante/webext-detect
Add expect/assert methods
Open
enhancement
good first issue
help wanted
- Dominant language
- TypeScript
- Stars
- 51
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
```js
function backgroundStuff() {
expectBackground();
// -> Error: Expected background context, found content script
chrome.alarms.set(…);
}
```
I'm not sure about the API because this would only accept one type at a time and no negatives, e.g. "expect not background"
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.