snippets/old_snippets/locally-host-istanbul-js-results.md

17 lines
400 B
Markdown

---
title: "locally host istanbul js results"
date: 2021-06-23T11:15:24+02:00
draft: false
snippet_types:
- js
- npx
- npm
---
At work we use [istanbul js](https://istanbul.js.org/) for code coverage but at
times the cli output is not enough to debug. Luckily istanbul also outputs a HTML
report that can be viewed with the following command:
```shell
$ npx http-server ./coverage/lcov-report
```