mocha-let-ts
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i mocha-let-ts

Weekly Downloads

2

Version

1.1.4

License

ISC

Unpacked Size

7.65 kB

Total Files

14

Last publish

Collaborators

  • tommy_sullivan