Skip to content

vpotseluyko/mjs-mocha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •