Enables a concise, typesafe, RSpec-like "let" construct. This is a lightweight typescript wrapper over the bdd-lazy-var library which does all the heavy lifting.
Add to your project as a dev dependency:
npm i mocha-let-ts --save-dev
Mocha must be made aware of the presence of the alternative UI provided by bdd-lazy-var.
An easy way to do this is by passing the -u param to mocha:
mocha -u bdd-lazy-var/getter
Here is an example mocha test demonstrating the use of Let()
Add your credentials:
npm adduser
Then publish (after updating package version according to semver in package.json):
npm publish