Run browser extension tests inline from VS Code — unit tests with stateful Chrome API mocking, flakiness tracking, and live test results in the sidebar
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Run browser extension tests inline from VS Code. Unit tests with stateful Chrome API mocking, flakiness tracking, and live test results — all without leaving your editor.
Features
▶ Run CodeLens — Click ▶ Run above any test() or it() to run it
Test Explorer sidebar — See results in the Extrig tree view with pass/fail icons
Inline diagnostics — Failed tests show as errors in the editor gutter
Status bar integration — Live test progress while running
Watch mode — Re-run tests on file changes
Getting Started
Install the extrig CLI in your extension project:
pnpm add -D extrig
npx extrig init
Open any test file and click ▶ Run above a test, or:
Ctrl+Shift+P → Extrig: Run All Tests
Ctrl+Shift+P → Extrig: Start Watch Mode
Requirements
extrig must be installed in your project (pnpm add -D extrig)