Skip to content

Commit 26c81c5

Browse files
committed
add note about local testing
1 parent c182130 commit 26c81c5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,18 @@ $ DEBUG=code-coverage npm run dev
286286
code-coverage saving coverage report using command: "nyc report --report-dir ./coverage --reporter=lcov --reporter=clover --reporter=json" +3ms
287287
```
288288

289+
## Contributing
290+
291+
You can test changes locally by running tests and confirming the code coverage has been calculated and saved.
292+
293+
```shell
294+
npm run test:ci
295+
# now check generated coverage numbers
296+
npx nyc report --check-coverage true --lines 80
297+
npx nyc report --check-coverage true --lines 100 --include cypress/about.js
298+
npx nyc report --check-coverage true --lines 100 --include cypress/unit.js
299+
```
300+
289301
## License
290302

291303
This project is licensed under the terms of the [MIT license](/LICENSE.md).

0 commit comments

Comments
 (0)