run-mocha

Function that converts an object into a mocha suite. Useful for sharing tests with the browser that use an 'export' like interface

Usage no npm install needed!

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

README

run-mocha

Function that converts an object into a mocha suite. Useful for sharing tests with the browser that use an 'export' like interface

Installation

npm install --save run-mocha

Usage

Development

Clone, install dependencies and re-test whenever some file is modified:

git clone git://github.com/tarruda/run-mocha.git
cd run-mocha
npm install
grunt