Skip to content

CI never runs the Jest test suite — npm test is absent from ci.yml, so every *.test.tsx/*.test.ts file in the repo never executes in CI #250

Closed

Description

@chonilius

.github/workflows/ci.yml's build-and-lint job runs, in order: npm ci, npm run lint,
npm run verify:env, npm run build, npm run verify:headers, npm audit --audit-level=high.

There is no npm test (or npm run test) step anywhere in this workflow, despite
package.json defining "test": "jest" and a fully working Jest setup
(jest.config.ts, jest.setup.ts, ts-jest, jest-environment-jsdom,
@testing-library/react all present and configured).

The repository contains eleven *.test.tsx/*.test.ts files covering exactly the logic
this project's own issue history treats as most critical: AuthContext.test.tsx,
WalletContext.test.tsx, useCrossTabStorage.test.ts, adapters.test.ts,
utils.test.ts (money formatting), markdown.test.ts, StatCard.test.tsx,
BountyCard.test.tsx, BountyDescription.test.tsx (including its XSS-hardening
assertions), ActivityList.test.tsx, and PipelineBoard.test.tsx. None of these run on
any push or pull request — a change that breaks any of them (including, notably, the
security-hardening assertions in BountyDescription.test.tsx that verify markdown-based
XSS payloads render inertly) would merge to main with a fully green CI run, since the
test suite that would have caught it simply never executes.

This is a distinct, mechanical gap from "we don't have enough tests" — the tests exist
and presumably pass locally, they're just never wired into the pipeline that's supposed
to gate merges.

Suggested fix: add a - run: npm test step to ci.yml, ideally before npm run build
so a broken test fails fast.

Activity

  1. added
    bug
    testing
    security
    spike
    on Aug 21, 2026
  2. added
    Stellar Wave
    on Aug 25, 2026
  3. mimi-esc commented on Aug 25, 2026

    @mimi-esc

    @mimi-esc has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hello,

    I would like to work on this issue.

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

  4. alansamdev commented on Aug 25, 2026

    @alansamdev
    Contributor

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

    Hello, I’d like to contribute to this issue

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

  5. drips-wave commented on Aug 25, 2026

    @drips-wave

    Congratulations, @alansamdev! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.

    🧑‍💻 @alansamdev: 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 🌊

  6. drips-wave commented on Aug 25, 2026

    @drips-wave

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

    😎 @alansamdev: 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.

  7. removed
    Stellar Wave
    on Oct 15, 2026
  8. added
    Stellar Wave
    on Oct 15, 2026
  9. removed
    Stellar Wave
    on Oct 15, 2026
  10. added
    Stellar Wave
    on Oct 15, 2026
  11. removed
    Stellar Wave
    on Oct 15, 2026
  12. 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

Assignees

Labels

Stellar Wavebugsecurityspiketesting

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions