{"library":"mocha-vite-puppeteer","title":"mocha-vite-puppeteer","description":"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.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install mocha-vite-puppeteer"],"cli":{"name":"mocha-vite-puppeteer","version":null}},"imports":["npx mocha-vite-puppeteer","import { describe, it } from 'mocha'","import { expect } from 'chai'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// package.json script\n\"scripts\": {\n  \"test\": \"mocha-vite-puppeteer\"\n}\n\n// Counter.test.jsx\nimport { expect } from 'chai';\nimport React from 'react';\nimport { render, screen } from '@testing-library/react';\nimport Counter from './Counter';\n\ndescribe('Counter', () => {\n  it('should increment', () => {\n    render(<Counter />);\n    const btn = screen.getByText('count is: 0');\n    btn.click();\n    screen.getByText('count is: 1');\n  });\n});\n\n// Run:\n// npx mocha-vite-puppeteer","lang":"javascript","description":"Shows how to set up and run a Mocha test with Vite bundler and Puppeteer using mocha-vite-puppeteer.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}