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
Running jest --watch with collectCoverage: true and collectCoverageFrom: ['src/**/*.{js,vue}'] doesn't show coverage.
It works as expected when running just jest, but problem arises when running jest --watch
To Reproduce
Run jest & jest --watch in the reproduction repo
Expected behavior
jest works as expected, shows coverage info
> jest
PASS src/test.js
test
√ test (3ms)
------------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
------------|----------|----------|----------|----------|-------------------|
All files | 57.14 | 50 | 0 | 57.14 | |
src | 0 | 100 | 100 | 0 | |
index.js | 0 | 100 | 100 | 0 | 2,3,5 |
src/App | 72.73 | 50 | 0 | 72.73 | |
index.vue | 72.73 | 50 | 0 | 72.73 | 7,8,11 |
------------|----------|----------|----------|----------|-------------------|
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 5.748s
Ran all test suites.
jest --watch does not show any coverage
> jest --watch
PASS src/test.js
test
√ test (7ms)
----------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
----------|----------|----------|----------|----------|-------------------|
All files | 0 | 0 | 0 | 0 | |
----------|----------|----------|----------|----------|-------------------|
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 5.985s
Ran all test suites.
Watch Usage: Press w to show more.
Thank you for the bug report, but it doesn't look like this is caused by vue-jest (since there are reports in the linked issue for users not using vue-jest)
Running
jest --watch
withcollectCoverage: true
andcollectCoverageFrom: ['src/**/*.{js,vue}']
doesn't show coverage.It works as expected when running just
jest
, but problem arises when runningjest --watch
To Reproduce
Run
jest
&jest --watch
in the reproduction repoExpected behavior
jest
works as expected, shows coverage infojest --watch
does not show any coverageLink to repl or repo
Repro: https://github.com/laggingreflex/repro-vue-jest-template
npx envinfo --preset jest
Linked: jestjs/jest#8364
The text was updated successfully, but these errors were encountered: