Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/stefanpenner/mocha-esm
- Owner: stefanpenner
- Created: 2018-06-26T23:53:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-08T16:06:41.000Z (over 6 years ago)
- Last Synced: 2024-10-17T18:11:43.426Z (19 days ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
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
```