Collect coverage JSON into a directory.
Section: Memory, Profiling, and Coverage
Write V8 coverage output
bash
bash
NODE_V8_COVERAGE=./coverage node app.jsExplanation
Useful for diagnostics or integrating with coverage tooling.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Memory, Profiling, and Coverage