Skip to content

Frameworks and tools ​

Find integrations for browser tests, Vitest and Jest, TypeScript, or VS Code. If your framework is not listed, see generic CLI and API integration.

Playwright ​

For collection code, see Collect V8 coverage with Playwright.

Puppeteer ​

For collection code, see Collect V8 coverage with Puppeteer.

Vitest ​

Jest ​

Cypress ​

WebdriverIO ​

Storybook Test Runner ​

Selenium Webdriver ​

CodeceptJS ​

TestCafe ​

TypeScript ​

For Node.js 22.18.0 or later, prefer built-in type stripping to run TypeScript with erasable syntax. No build step or external loader is needed.

sh
npx mcr node ./src/example.ts
npx mcr test "./test/**/*.test.ts"

For setup and coverage behavior, see TypeScript support. For tsx and ts-node examples, see External loaders.

VSCode ​

Node.js coverage reporter ​

We recommend using mcr test directly instead of configuring a separate coverage reporter; see Run tests with mcr test.

c8 ​

  • c8 has integrated MCR as an experimental feature since v10.1.0
sh
c8 --experimental-monocart --reporter=v8 --reporter=console-details node foo.js

For Node.js's built-in test runner, we recommend using mcr test instead of a separate coverage collection workflow; see Run tests with mcr test.

Mocha ​

sh
mcr mocha ./test/**/*.js

For Node.js unit and integration tests, we recommend using mcr test instead; see Run tests with mcr test.

AVA ​

sh
mcr ava

For Node.js unit and integration tests, we recommend using mcr test instead; see Run tests with mcr test.


Note: Replacing a test runner with mcr test means migrating to node:test, not just changing the command; test APIs, assertions and hooks may need adapting.