You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like Jest try to run coverage report even if I don't ask him :)
To Reproduce
Steps to reproduce the behavior:
Add testResultsProcessor to config
Run test with jest
Expected behavior
We have two scripts to run unit tests: "test": "jest --no-cache" and "test:coverage": "npm run test -- --coverage"
When I run first command I expect that Jest run only unit tests and nothing more. And if I need coverage reports I need to run second command.
But currently when I run first command it also try to run coverage report, but it fails, because can't create folder for tests. If I will run second command it works well.
I think it's because adding testResultsProcessor param to Jest config in packega.json.
Link to repl or repo (highly encouraged)
Link https://repl.it/@pruchay/jest-playground#package.json
If you run jest it will create coverage report, but if you remove "testResultsProcessor": "jest-sonar-reporter" from package.json it will not create coverage report.
We find two possible quick solutions for us.
First is to run command like this jest --no-cache --testResultsProcessor=''
Second is to delete "testResultsProcessor" from jest config and add testResultsProcessor param to script with coverage:
npm run test -- --coverage --testResultsProcessor='jest-sonar-reporter'.
So we choose second one. But I think, it will be better to fix it in library :)
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
Looks like Jest try to run coverage report even if I don't ask him :)
To Reproduce
Steps to reproduce the behavior:
testResultsProcessor
to configjest
Expected behavior
We have two scripts to run unit tests:
"test": "jest --no-cache"
and"test:coverage": "npm run test -- --coverage"
When I run first command I expect that Jest run only unit tests and nothing more. And if I need coverage reports I need to run second command.
But currently when I run first command it also try to run coverage report, but it fails, because can't create folder for tests. If I will run second command it works well.
I think it's because adding
testResultsProcessor
param to Jest config inpackega.json
.Link to repl or repo (highly encouraged)
Link https://repl.it/@pruchay/jest-playground#package.json
If you run
jest
it will create coverage report, but if you remove"testResultsProcessor": "jest-sonar-reporter"
frompackage.json
it will not create coverage report.envinfo
The text was updated successfully, but these errors were encountered: