[FEAT] Add tests for src/components/MountainSvg.tsx

Open
#131 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
70/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
react-native, typescript
Domain
mobile, testing

Research direction

Start by reading src/components/MountainSvg.tsx and compare the patterns in src/utils/__tests__ and src/store/__tests__, especially their timer and storage mocks. Add Jest and React Native Testing Library coverage for rendering, props, state changes, relevant edge cases, and interactions if applicable; done means the component’s applicable behavior is covered and the tests pass.

Written by the indexing model from the issue text.

Description

enhancement good first issue help wanted

Is your feature request related to a problem? Please describe.

Our overall test coverage is currently low (~18%). To ensure app stability and prevent regressions, we need to increase test coverage across the codebase. This issue is part of the broader Epic to test Module 3: Complex UI Components.

Describe the solution you'd like

Add unit/component tests for src/components/MountainSvg.tsx using Jest and React Native Testing Library.

  • Verify the component/hook renders or initializes correctly.
  • Test props, state changes, and edge cases.
  • Test user interactions if applicable.

Describe alternatives you've considered

N/A

Additional Context

This is a sub-task of #121 [EPIC] Increase Test Coverage.
Check the existing tests in src/utils/__tests__ and src/store/__tests__ for inspiration on how we mock timers and storage.

Dominant language
TypeScript
Stars
4
Forks
4
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GiZano/LevelUp

All issues in GiZano/LevelUp

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.