Skip to content

Commit

Permalink
build: add command to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelCurrin committed Oct 31, 2021
1 parent 6e53ec6 commit 18b639e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ t test:
yarn compile
yarn test:coverage

q test-quick:
yarn test:unit


s serve: fix
yarn start
Expand Down
8 changes: 6 additions & 2 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,18 @@ Run unit tests.

```sh
$ make test
$ # OR
$ make t
```

That includes a step to compile to TypeScript, to give validation. Though the compiled output JS is not actually needed.
That includes a step to compile to TypeScript, to give type validation. Though the compiled output JS is not actually needed.

To run tests without compilation and without code coverage, just run:

```sh
$ yarn test:unit
$ make test-quick
$ # OR
$ make q
```

The IDE should also give TypeScript errors as hints.
Expand Down

0 comments on commit 18b639e

Please sign in to comment.