{"library":"webextensions-api-mock","type":"library","category":null,"description":"Automatically generated sinon stubs for the WebExtensions API, designed to make browser extension testing easy. Version 1.0.0 uses the Firefox 72.0.2 schema and provides TypeScript types. Sinon is a peer dependency, not bundled, to avoid instanceof issues. Includes API and CLI to update schema to latest stable Firefox via webextensions-schema. Produces a fresh sandbox per call, with sinonSandbox exposed. Ideal for unit testing WebExtensions against sinon assertions and stubs.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","webextensions","schemas","typescript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install webextensions-api-mock","imports":["import browserMock from 'webextensions-api-mock';","import { update } from 'webextensions-api-mock';","import browserMock from 'webextensions-api-mock'; const browser = browserMock();"]},{"cmd":"yarn add webextensions-api-mock","imports":[]},{"cmd":"pnpm add webextensions-api-mock","imports":[]}],"homepage":null,"github":"https://github.com/stoically/webextensions-api-mock","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/webextensions-api-mock","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}