Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stefanpenner/mocha-esm

Quick trick to get to use mocha + esm/.mjs
https://github.com/stefanpenner/mocha-esm

Last synced: 17 days ago
JSON representation

Quick trick to get to use mocha + esm/.mjs

Awesome Lists containing this project

README

        

# mocha-esm

[![Build Status](https://travis-ci.org/stefanpenner/mocha-esm.svg?branch=master)](https://travis-ci.org/stefanpenner/mocha-esm)
So I was playing around with esm (`.mjs`) files and realized, I couldn't get
mocha running nicely. So this happened.

This is likely missing features, but I am open to PR's addressing!

## Installation

```sh
yarn add global mocha-esm
```

or

```sh
npm i -g mocha-esm
```

Then:

```
mocha-esm
mocha-esm inspect
mocha-esm inspect-brk
```