esmocha
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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.

// expect lib
import { expect } from 'esmocha';
// mocking lib
import { mock, resetAllMocks } from 'esmocha';
// mocha lib
import { afterAll, beforeAll } from 'esmocha';

Manual loading:

npx mocha --require esmocha/mocha --loader esmocha/loader

Updating expect snapshots:

npx esmocha --update-snapshot

License

MIT

Package Sidebar

Install

npm i esmocha

Weekly Downloads

1,657

Version

1.2.0

License

none

Unpacked Size

5.86 kB

Total Files

12

Last publish

Collaborators

  • mshima