Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mocha-pup

Package Overview
Dependencies
Maintainers
3
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-pup

Run mocha tests in Chrome, using webpack and puppeteer.

  • 5.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

mocha-pup

Build Status npm version

Run mocha tests in Chrome, using webpack and puppeteer.

Installation

Install mocha-pup as a dev dependency:

npm i mocha-pup --save-dev

mocha-pup expects mocha, puppeteer, webpack, and html-webpack-plugin to also be installed in the project.

Usage

A CLI named mocha-pup is available after installation:

mocha-pup [options] <glob ...>

For example:

mocha-pup "test/**/*.spec.js"
mocha-pup "test/**/*.spec.ts" -c webpack.config.js

CLI Options

  -v, --version                       output the version number
  -c, --webpack-config <config file>  webpack configuration file to bundle with
  -d, --dev                           never-closed, non-headless, open-devtools puppeteer session
  -l, --list-files                    list found test files
  -t, --timeout <ms>                  mocha timeout in ms (default: 2000)
  --reporter <spec/html/dot/...>      mocha reporter to use (default: "spec")
  --ui <bdd|tdd|qunit|exports>        user interface of mocha (default: "bdd")
  --no-colors                         turn off colors (default is env detected)
  -h, --help                          output usage information

License

MIT

FAQs

Package last updated on 18 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc