Run Mocha front-end tests with Vite bundler and Puppeteer browser launcher. Current stable version is 3.0.1. Release cadence is irregular based on contributions. Key differentiators: leverages Vite for fast bundling, works with any Vite project (not framework-specific), supports JS and TS via Vite, and provides built-in reporters plus custom reporter support (e.g., mocha-junit-reporter). It bridges Mocha testing with Vite's modern tooling, offering a streamlined workflow compared to older setups like Karma or Webpack-based runners.
npm install mocha-vite-puppeteerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up and run a Mocha test with Vite bundler and Puppeteer using mocha-vite-puppeteer.
npm install --save-dev puppeteer
Use Vite as your bundler when using custom test.html with globEager.
Ensure reporter-options file is valid JSON and contains the expected keys.
Place custom test.html in the project root or use --entry flag to specify path.
npm install --save-dev puppeteer
Add import 'mocha' before calling mocha.setup().
Check file naming and ensure test files end with .test.js or .test.jsx (or adjust glob in test-loader.js).
Ensure you are running with Vite (the default mode) and not using a different bundler.
No dependency data recorded yet.