esmocha
Mocha wrapper with built-in typescript, built-in expect with mock and snapshot support.
Usage
npm install esmocha --save-dev
esmocha
executable is a wrapper for mocha
executable, every option should work.
npx esmocha
Every method is re-exported.
import { expect } from 'esmocha';
import { mock, resetAllMocks } from 'esmocha';
import { afterAll, beforeAll } from 'esmocha';
Manual loading:
npx mocha --require esmocha/mocha --loader esmocha/loader
Updating expect snapshots:
npx esmocha --update-snapshot
License
MIT