()
| 463 | } |
| 464 | |
| 465 | function setupCodeCoverage() { |
| 466 | // Resolve the coverage directory to an absolute path, and |
| 467 | // overwrite process.env so that the original path gets passed |
| 468 | // to child processes even when they switch cwd. Don't do anything if the |
| 469 | // --experimental-test-coverage flag is present, as the test runner will |
| 470 | // handle coverage. |
| 471 | if (process.env.NODE_V8_COVERAGE && |
| 472 | !getOptionValue('--experimental-test-coverage')) { |
| 473 | process.env.NODE_V8_COVERAGE = |
| 474 | setupCoverageHooks(process.env.NODE_V8_COVERAGE); |
| 475 | } |
| 476 | } |
| 477 | |
| 478 | function setupStacktracePrinterOnSigint() { |
| 479 | if (!getOptionValue('--trace-sigint')) { |
no test coverage detected
searching dependent graphs…