5.1.6 • Published 4 years ago

mocha-pup v5.1.6

Weekly downloads
149
License
MIT
Repository
github
Last release
4 years ago

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

5.1.6

4 years ago

5.1.5

4 years ago

5.1.4

4 years ago

5.1.3

4 years ago

5.1.2

4 years ago

5.1.1

4 years ago

5.1.0

4 years ago

5.0.0

4 years ago

4.0.4

4 years ago

4.0.3

4 years ago

4.0.2

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.1.19

5 years ago

0.1.18

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago