mocha-is-running

Very simple module that detect if process is started by Mocha. Zero dipendencies

Usage no npm install needed!

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

README

mocha-is-running

Very simple module that detect if process is started by Mocha. Zero dependencies

Installation

npm install mocha-is-running --save

Example

const mochaIsRunning = require('mocha-is-running');
console.log(mochaIsRunning()) //=> true or false;

Changelog

You can view the changelog here

License

mocha-is-running is open-sourced software licensed under the MIT license

Authors

Fabio Ricali