sinon
JavaScript test spies, stubs and mocks.
@webext-core/fake-browser
An in-memory implementation of webextension-polyfill for testing. Supports all test frameworks (Vitest, Jest, etc)
xhr-mock
Utility for mocking XMLHttpRequest.
mockttp
Mock HTTP server for testing HTTP clients and stubbing webservices