Test Automation
Chrome Extension Testing Guide: Jest, Puppeteer, and chrome-mock
Test Chrome extensions at three levels: unit-test business logic with Jest + chrome-mock (no browser required), integration-test UI with Puppeteer by loading the unpacked extension, and end-to-end test user flows with HelpMeTest. Use sinon-chrome or jest-chrome to mock the chrome.* APIs in unit tests.