3.0.0 • Published 5 years ago

mjs-mocha v3.0.0

Weekly downloads
113
License
ISC
Repository
github
Last release
5 years ago

mjs-mocha

A very simple npm mocha mjs polyfill. No dependencies at all. Very small and light.

Install

$ npm i -D mjs-mocha

Usage

Import

import 'mjs-mocha';

describe('My test', () => {
  ...
})

CLI

Add the script to your package.json.

{
  "scripts": {
    "test": "mjs-mocha"
  }
}

Then just run npm test.

mjs-mocha will run all *.test.mjs and *.spec.mjs files in your repository.

Also you can specify test files to run by passing them as arguments.

Example

project structure:

  • src
    • ...
  • tests
    • first.test.mjs
    • second.test.mjs
    • third.test.mjs
mjs-mocha first second
3.0.0

5 years ago

2.2.4

5 years ago

2.2.3

5 years ago

2.2.0

5 years ago

2.1.3

5 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago