Skip to content

Conversation

@asdolo
Copy link
Collaborator

@asdolo asdolo commented Dec 19, 2025

What does this do?

Moves all test files into a centralized __tests__ directory at the project root. Renames .spec.ts files to .test.ts for consistency. Updates import paths in moved tests and Sonar exclusions to reflect the new structure. Also fixes a typo: settings.generalesettings.general.


Why did you do this?

  • Test files for entire screens couldn't be created in the app directory because they would be considered routes by expo-router.
  • Centralizes test files in one location, making them easier to find and maintain. Aligns with common React Native/JavaScript conventions and improves project organization.

Who/what does this impact?

Developers working with tests: imports in moved tests are updated, and the Sonar configuration excludes the new __tests__ directory. No functional changes.

How did you test this?

  • Tested on iOS
  • Tested on Android
  • Tested on a small device
  • Tested on a real device
  • Tested all flows related with this PR changes
  • Tested accessibility
  • Added tests

Notes:


Screenshots / Previews

N/A

@asdolo asdolo self-assigned this Dec 19, 2025
@asdolo asdolo requested a review from a team as a code owner December 19, 2025 14:57
@github-actions
Copy link

💯 Test Coverage

Lines Statements Branches Functions
Coverage: 61%
60.57% (418/690) 57.4% (159/277) 48.52% (115/237)

😎 Tests Results

Tests Skipped Failures Errors Time
139 0 💤 0 ❌ 0 🔥 31.176s ⏱️
👀 Tests Details • (61%)
File% Stmts% Branch% Funcs% LinesUncovered Line #s
All files60.5757.448.5261.2 
app/(app)40.625021.4240.62 
   settings.tsx000026–45

Copy link

@ManuViola77 ManuViola77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants