1.1.4 • Published 6 years ago

mocha-let-ts v1.1.4

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

mocha-let-ts

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.

Installation

Add to your project as a dev dependency:

npm i mocha-let-ts --save-dev

Configure Mocha

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
  

Usage

Here is an example mocha test demonstrating the use of Let()

To Publish:

Add your credentials:

npm adduser

Then publish (after updating package version according to semver in package.json):

npm publish
1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.3.0

6 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago