Vitest Jest Bun Mocha
An in-memory implementation of webextension-polyfill for testing. Supports all test frameworks (Vitest, Jest, etc).
pnpm i -D @webext-core/fake-browser
See Testing Frameworks to setup mocks for your testing framework of choice.
See Implemented APIs for example tests and details on how to use each API.