question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Regression: nyc 15 creates output folder in wrong location and doesn't create HTML report at all

See original GitHub issue

Repo Steps

Execute npm test with the following configuration using nyc 15.0 (beta):

  "nyc": {
    "all": true,
    "exclude": [
      "**/index.ts",
      "**/*.d.ts",
      "**/*.js"
    ],
    "extension": [
      ".ts",
      ".tsx"
    ],
    "reporter": [
      "html"
    ],
    "report-dir": "../TypeScriptUnitTest/coverage",
    "temp-directory": "../TypeScriptUnitTest/.nyc_output"
  },
  "scripts": {
    "test": "nyc --cwd ../Application mocha -r ts-node/register -r source-map-support/register -r jsdom-global/register **/*.spec.ts"
  }

Expected Behavior

Creation of a folder TypeScriptUnitTest\.nyc_output\ with the raw nyc output and a folder TypeScriptUnitTest\coverage\ with the code coverage report.

Observed Behavior

The output folder is in the wrong location (Application\.nyc_output\) and the coverage\ folder isn’t created at all (so there is no report).

Notes

This is a regression since this setup has worked for over a year without any issues using nyc versions 12.0.2 and 14.1.1.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Nov 24, 2019

That looks much better! 😃

image

image

0reactions
coreyfarrellcommented, Nov 24, 2019

I’ve published @istanbuljs/load-nyc-config 1.0.0-alpha.2 with the fix. You should be able to revert the last commit on your demo repository, delete package-lock.json and node_modules then reinstall.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jenkins could not generate HTML Report folder on slave ...
Click on Workspace Button and navigate until the HTML report folder appears. ... Does not affect the rest of the configuration settings on...
Read more >
D Learning Check Solutions | Statistical Inference via Data ...
What makes them different than quantitative variables? Solution: Hint: Type ?flights in the console to see what all the variables mean! Categorical:.
Read more >
MIS 175 Section 4 - Second Midterm Examination
1. In regression analysis, the model in the form is called ... The variance of the error term is the same for all...
Read more >
F-02 FIRE GUARD FOR SHELTERS (Citywide) - NYC.gov
This Certificate of Fitness must be renewed every THREE YEARS. The renewal fee is. $15. FDNY also reserves the right to require the...
Read more >
Report of Change in Ownership or Address
owner/managing agent or a change in the address for the owner/managing agent. ... If the building is registered with the New York City...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found