Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverage report 0% for everything #6208

Closed
andrew-leonard opened this issue May 18, 2018 · 2 comments
Closed

Coverage report 0% for everything #6208

andrew-leonard opened this issue May 18, 2018 · 2 comments

Comments

@andrew-leonard
Copy link

andrew-leonard commented May 18, 2018

🐛 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:

@Rukeith
Copy link

Rukeith commented Jul 5, 2018

I think this issue is duplicate with this #6563

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants