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
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
Using VueJS and ES6 modules in my application. Have Jest running the test files. When I turn on coverage I get 0% for everything.
To Reproduce
Jest config
"jest": { "moduleDirectories": [ "node_modules" ], "testPathIgnorePatterns": [ "<rootDir>/webpack.config.test.js", "<rootDir>/src/" ], "transform": { "^.+\\js$": "<rootDir>/node_modules/babel-jest" }, "collectCoverage": true, "collectCoverageFrom": [ "**/src/**/*.js", "!**/node_modules/**" ], "coverageReporters": [ "text", "text-summary" ] },
Coverage output
=============================== Coverage summary
Statements : 0% ( 0/3305 )
Branches : 0% ( 0/1223 )
Functions : 0% ( 0/822 )
Lines : 0% ( 0/3217 )
Expected behavior
Test coverage file to give me a more accurate readout of the coverage.
Link to repl or repo (highly encouraged)
Please provide either a repl.it demo or a
minimal repository on GitHub.
Issues without a reproduction link are likely to stall.
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: