0.3.1 • Published 3 years ago

mocha-async-hooks-aware v0.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

mocha-async-hooks-aware

build status

Extension for mocha javascript testing library to prevent async context leakage between tests.

Use

Add the dependency, e.g.:

yarn add -D mocha-async-hooks-aware

Add the following to your mocha config:

--require mocha-async-hooks-aware

For more info, see https://mochajs.org/#-require-module-r-module

Development

Setup

yarn

Running tests

yarn test

Demonstrating why this lib is necessary

yarn test:no-protection

Further reading