[FEAT] Add tests for src/screens/SettingsScreen.tsx

Aperta
#140 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
react-native, typescript
Ambito
mobile, testing

Direzione di ricerca

Start with src/screens/SettingsScreen.tsx and review the example tests in src/utils/__tests__ and src/store/__tests__ for project conventions, including mocking timers and storage. Add Jest and React Native Testing Library coverage for initialization, props or state changes, edge cases, and applicable user interactions; done when the relevant screen behavior is covered by passing tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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 4: App Screens.

Describe the solution you'd like

Add unit/component tests for src/screens/SettingsScreen.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.

Lingua principale
TypeScript
Stelle
4
Fork
4
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GiZano/LevelUp

Tutte le issue di GiZano/LevelUp

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.