Skip to content

jest.config.ts has no coverage collection or coverageThreshold, so a test-coverage regression can't fail CI #416

Closed

Description

@abayomicornelius

Problem

Neither jest.config.ts nor the "test" script in package.json wires up coverage collection or enforcement:

// package.json
"test": "jest",
"test:watch": "jest --watch",

jest.config.ts has no collectCoverage, collectCoverageFrom, or coverageThreshold fields at all. Yet the rest of the repo's tooling clearly anticipates a coverage report existing: .gitignore has a # testing / /coverage entry, and eslint.config.mjs's globalIgnores was specifically extended (closing #252) to add coverage/** "since Jest/Istanbul writes a static HTML report bundle there." Both of those exist to handle a coverage report that npm test (as actually run, including in CI's npm test step) never generates in the first place.

Impact

This repo's own issue history treats test coverage as a first-class concern — the majority of the testing-labeled issues in this batch and the original audit are specifically about which files have zero coverage. But there's no mechanism enforcing that coverage doesn't regress once it exists: a PR could delete or gut an existing test file's assertions and nothing in CI would notice, because coverage is never measured, let alone gated on. The gitignore/eslint-ignore entries anticipating a coverage report make this look like collection was intended at some point but the actual wiring (the --coverage flag, or a coverageThreshold config) was never completed.

Suggested fix

Add collectCoverage: true (or a dedicated "test:coverage": "jest --coverage" script run in CI instead of the plain "test" one) plus a coverageThreshold in jest.config.ts, so a coverage regression fails CI the same way a lint or type error already does.

Activity

  1. added
    testing
    on Sep 17, 2026
  2. Okorie2000-code commented on Sep 18, 2026

    @Okorie2000-code

    Hi, I’d be happy to take this on. The scope is clear, and I’m confident I can implement the required changes without introducing unnecessary complexity. I’ll handle the implementation, testing, and final verification so the PR is ready for review.

  3. added
    Stellar Wave
    on Sep 23, 2026
  4. mosharraftimes2018-dev commented on Sep 23, 2026

    @mosharraftimes2018-dev

    @mosharraftimes2018-dev has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    I would like to work on this issue.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @mosharraftimes2018-dev to this issue.

  5. khanavi272-spec commented on Sep 23, 2026

    @khanavi272-spec

    @khanavi272-spec has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    I would like to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @khanavi272-spec to this issue.

  6. DatboiCaleb commented on Sep 23, 2026

    @DatboiCaleb

    @DatboiCaleb has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    Hi Good day Maintainer

    I'm a smart contract and full-stack developer who turns complex ideas into secure, production-ready blockchain code. With strong skills in Rust and Solidity, I build systems that are fast, safe, and built to last. My experience with the Stellar SDK and Soroban lets me ship real-world Web3 solutions that actually move value.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @DatboiCaleb to this issue.

  7. CARTEL-L commented on Sep 23, 2026

    @CARTEL-L

    @CARTEL-L has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    Hi! I’m a full-stack developer with a strong blockchain background. I’d love to handle this issue and can deliver a clean, reliable solution. Kindly assign it to me.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @CARTEL-L to this issue.

  8. Binali223 commented on Sep 23, 2026

    @Binali223

    @Binali223 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    Hey I’d be happy to take this one. I’ve looked through the issue and can get started.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Binali223 to this issue.

  9. Horlarolowo123 commented on Sep 23, 2026

    @Horlarolowo123

    @Horlarolowo123 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    Hello Maintainer, I’ve carefully reviewed the issue and have a clear understanding of the requirements. I’m ready and confident to take it on. Kindly assign the issue to me.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Horlarolowo123 to this issue.

  10. davidjhonsonmate commented on Sep 23, 2026

    @davidjhonsonmate
    Contributor

    @davidjhonsonmate has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    please assign this issue to me

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @davidjhonsonmate to this issue.

  11. drips-wave commented on Sep 23, 2026

    @drips-wave

    Congratulations, @davidjhonsonmate! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.

    🧑‍💻 @davidjhonsonmate: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  12. added a commit that references this issue on Sep 25, 2026
  13. drips-wave commented on Sep 25, 2026

    @drips-wave

    This issue has been completed by @davidjhonsonmate as part of the Stellar Wave Program's 9th Wave 🥳

    😎 @davidjhonsonmate: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

  14. removed
    Stellar Wave
    on Oct 15, 2026
  15. added
    Stellar Wave
    on Oct 15, 2026
  16. removed
    Stellar Wave
    on Oct 15, 2026
  17. added
    Stellar Wave
    on Oct 15, 2026
  18. removed
    Stellar Wave
    on Oct 15, 2026
  19. added
    Stellar Wave
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar Wavetesting

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions