Skip to content
New issue

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

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

Already on GitHub? # to your account

running code coverage produces result for only 1 component #1006

Open
1 task done
mohanraj-r opened this issue Jan 29, 2025 · 1 comment
Open
1 task done

running code coverage produces result for only 1 component #1006

mohanraj-r opened this issue Jan 29, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@mohanraj-r
Copy link

Summary

npm run test:unit:coverage produces result for only 1 cmp resourceLoader.js

Salesforce Org Type

Scratch Org

Steps To Reproduce

  1. On recent main (641a7f6)
  2. npm install
  3. npm run test:unit:coverage
  4. Check console output for coverage summary
  5. Open coverage/lcov-report/index.html in browser for coverage results
  6. Optionally add following to jest.config.js to debug (same results with or without this config change)
collectCoverage: true,
coverageReporters: ['json', 'html', 'lcov', 'text'],

Current Behavior

-------------------|---------|----------|---------|---------|-------------------
File               | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-------------------|---------|----------|---------|---------|-------------------
All files          |       0 |      100 |       0 |       0 |
 resourceLoader.js |       0 |      100 |       0 |       0 | 9-16
-------------------|---------|----------|---------|---------|-------------------

Test Suites: 122 passed, 122 total
Tests:       425 passed, 425 total
Snapshots:   0 total
Time:        5.421 s
Ran all test suites.

Opening coverage/lcov-report/index.html in browser shows the same results.

Expected Behavior

Coverage is output for all components the 425 tests ran against.

Relevant Log Output

Code of Conduct

  • I agree to follow this project's Code of Conduct
@mohanraj-r mohanraj-r added the bug Something isn't working label Jan 29, 2025
Copy link
Contributor

Thank you for posting this issue. 🙇🏼‍♂️
We will come back to you shortly.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants