Skip to content

Commit

Permalink
udpate test script to use --reporter=lcov #1
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Jun 15, 2024
1 parent 49f40e5 commit bb605d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,13 @@ tap.test('add a negative number should work', (t: Test) => {
})
```

This file just imports the `tap` file
This file just imports the `tap` library
and `add` function from `add.ts` file.

Then it defines _two_ tests for good measure.
Once is the basic `1 + 2 = 3` test
and the other adds a _negative_ number
which exercises our `add` function's versatility.


### Setup the Testing Library & Scripts
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"typescript": "^5.4.5"
},
"scripts": {
"test": "nyc tap ./add.test.ts",
"test": "nyc --reporter=lcov tap ./add.test.ts",
"coverage": "nyc --report html tap ./add.test.ts && open coverage/index.html"
},
"repository": {
Expand Down

0 comments on commit bb605d6

Please sign in to comment.