An open API service indexing awesome lists of open source software.

https://github.com/phizaz/typescript-mocha-chai-boilerplate

Boilerplate for typescript with testing using mocha and chai
https://github.com/phizaz/typescript-mocha-chai-boilerplate

typescript

Last synced: 2 months ago
JSON representation

Boilerplate for typescript with testing using mocha and chai

Awesome Lists containing this project

README

        

# Typescript - Mocha - Chai Boilerplate

> Boilerplate for typescript with testing using mocha and chai (this is not intended to be used in production)

## Prerequisites

```
npm install -g mocha istanbul
npm install
```

## Build

```
npm install -g typescript
# and build using VScode
```

## Testing

```
source env
test
cover
```

Or, manually,

```
mocha --no-timeouts --recursive --require=source-map-support/register
istanbul cover node_modules/mocha/bin/_mocha -- --no-timeouts --recursive --require=source-map-support/register
```

You must install `mocha` locally in order to use `istanbul` properly.