Skip to content

Commit

Permalink
One test passing
Browse files Browse the repository at this point in the history
  • Loading branch information
stormwild committed Sep 8, 2019
1 parent b61279f commit fb220c6
Show file tree
Hide file tree
Showing 4 changed files with 2,287 additions and 93 deletions.
19 changes: 19 additions & 0 deletions docs/DEV.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,25 @@ tsconfig.json

Testing TypeScript with Mocha Chai

```
"test": "mocha -r ts-node/register src/**/*.spec.ts"
```

Install sinon

```bash
npm i -D sinon
npm i -D @types/sinon
```

Chai

```bash
npm i -D dirty-chai chai-as-promised
npm i -D @types/chai-as-promised
npm i -D @types/dirty-chai
```

- [Testing a TypeScript API With Mocha and Chai Image Testing a TypeScript API With Mocha and Chai](https://tutorialedge.net/typescript/testing-typescript-api-with-mocha-chai/)

- [Writing unit tests in TypeScript](https://medium.com/@RupaniChirag/writing-unit-tests-in-typescript-d4719b8a0a40)
Expand Down
Loading

0 comments on commit fb220c6

Please sign in to comment.