fregante / fregante/webext-detect

Add expect/assert methods

Open
#5 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.