Skip to content

Add tests for ClearLocalData #913

Closed

Description

@Austinaminu2

Description

The "clear local data" danger-zone control currently has no test coverage (0 calls in the Vitest coverage report).

Location

components/settings/clear-local-data.tsx

Task

Add tests under __tests__/ (Vitest + Testing Library; only __tests__/** is collected). Cover at least:

  • confirmation step is required
  • only flowstar* localStorage keys are removed
  • other keys (e.g. walletId) are kept
  • a success toast is shown

Acceptance criteria

  • Tests live under __tests__/ and pass with npm test
  • Listed cases are covered
  • No production code changes needed (unless a bug is found — then note it in the PR)

Good for contributors because

Self-contained test task with clear inputs/outputs; a great way to learn the codebase.

Activity

  1. added
    Stellar WaveIssues in the Stellar wave program
    and removed
    Stellar WaveIssues in the Stellar wave program
    on Oct 14, 2026
  2. Nexus00031 commented on Oct 18, 2026

    @Nexus00031

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

    Hi maintainers!
    I’d love to help out with this issue. I’ve checked the current codebase/documentation and know exactly what needs to be updated to make this clearer. I will ensure everything aligns perfectly with your existing contribution guidelines.

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

  3. yosemite01 commented on Oct 18, 2026

    @yosemite01
    Contributor

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

    Hi maintainer, I’ve handled similar issues before and I’m confident I can solve this one too. Please assign it to me.

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

  4. drips-wave commented on Oct 18, 2026

    @drips-wave

    Congratulations, @yosemite01! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

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

  5. grantfox-oss commented on Oct 18, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox!

    @yosemite01's PR #1023 was approved and merged by @Austinaminu2.

    🏆 @yosemite01: You earned 40 FoxPoints for this contribution! Your current tier: Builder (1,225 total points). Track your full progress on GrantFox.

    👏 Great work, @yosemite01! Keep contributing to FlowwStar.

  6. drips-wave commented on Oct 18, 2026

    @drips-wave

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

    😎 @yosemite01: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, 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. added a commit that references this issue on Oct 19, 2026
    a788419
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions