istanbuljs / nyc

the Istanbul command line interface
https://istanbul.js.org/
ISC License
5.54k stars 353 forks source link

nyc reports dont generate when adding nyc config #1566

Closed MadnezGirl closed 3 weeks ago

MadnezGirl commented 3 weeks ago

Hello! I can't get nyc reports when I add nyc config via nyc.config.js or .nycrc or just pasted it into package.json

Error: Coverage file /path/.nyc_output/out.json cannot be found. Skip coverage report

My nyc config in package.json: "nyc": { "exclude": [".testNameFolder"] }

[!!!] But when I delete the nyc configuration, then delete the project build folders and reinstall the packages, then I can get nyc reports in .nyc_output folder.

I use:

Can you tell me why, after adding the nyc config, I can’t receive reports, although everything works without the config? I connect everything correctly, according to the instructions.