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
- Host: GitHub
- URL: https://github.com/phizaz/typescript-mocha-chai-boilerplate
- Owner: phizaz
- Created: 2017-06-23T06:52:21.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-24T07:18:57.000Z (almost 8 years ago)
- Last Synced: 2025-02-03T17:03:29.974Z (4 months ago)
- Topics: typescript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.