mocha-cli

The local mocha executor.

Usage no npm install needed!

<script type="module">
  import mochaCli from 'https://cdn.skypack.dev/mocha-cli';
</script>

README

mocha-cli

npm version Downloads/month Dependency Status

The local mocha executor.

Installation

> npm install -g mocha-cli

Note:

  • The mocha module must not be installed into global.
  • This module must be installed into global.

Usage

First, please install the mocha module in local.

> npm install --save-dev mocha

Next, please do mocha.

> mocha 

This command executes the global mocha-cli, then it finds and executes the local mocha.

That's all. Enjoy!

PS. Copied heavily from https://github.com/mysticatea/eslint-cli