Skip to content

Commit

Permalink
Add example for mocha 7, since they removed some watch flags in v7 (#961
Browse files Browse the repository at this point in the history
)

* Add example for mocha 7, since they removed some watch flags in v7

* addressing pr feedback

* empty commit to trigger travis re-run
  • Loading branch information
cspotcode committed Mar 2, 2020
1 parent 1f4e127 commit e006df6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -54,12 +54,20 @@ You can require `ts-node` and register the loader for future requires by using `

### Mocha

Mocha 6

```sh
mocha --require ts-node/register --watch-extensions ts,tsx "test/**/*.{ts,tsx}" [...args]
```

**Note:** `--watch-extensions` is only used in `--watch` mode.

Mocha 7

```sh
mocha --require ts-node/register --extensions ts,tsx --watch --watch-files src 'tests/**/*.{ts,tsx}' [...args]
```

### Tape

```sh
Expand Down

0 comments on commit e006df6

Please sign in to comment.