esmocha
[Mocha](https://mochajs.org) wrapper with built-in [typescript](https://github.com/node-loaders/loaders/tree/main/workspaces/esbuild), built-in [expect](https://jestjs.io/docs/expect) with [mock](https://github.com/node-loaders/loaders/tree/main/workspace
Last updated a year ago by mshima .
Original npm · Tarball · package.json
$ npm install esmocha 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.2.0                                ...           latest (a year ago)

10 Versions

  • 1.2.0                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (6)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE