jellyfin / jellyfin-expo

Jellyfin Mobile for iOS
https://jellyfin.org
Mozilla Public License 2.0
304 stars 66 forks source link

Add more component tests #323

Closed thornbill closed 2 years ago

thornbill commented 2 years ago

Adds tests for:

The *.snap files are generated snapshots by jest, so they don't require too thorough of a review :wink:

codecov[bot] commented 2 years ago

Codecov Report

Merging #323 (1436486) into master (884504b) will increase coverage by 11.72%. The diff coverage is 100.00%.

:exclamation: Current head 1436486 differs from pull request most recent head 17da186. Consider uploading reports for the commit 17da186 to get more accurate results Impacted file tree graph

@@             Coverage Diff             @@
##           master     #323       +/-   ##
===========================================
+ Coverage   32.81%   44.53%   +11.72%     
===========================================
  Files          37       37               
  Lines         710      714        +4     
  Branches      144      145        +1     
===========================================
+ Hits          233      318       +85     
+ Misses        430      355       -75     
+ Partials       47       41        -6     
Impacted Files Coverage Δ
components/SwitchListItem.js 100.00% <ø> (+14.28%) :arrow_up:
components/ErrorView.js 100.00% <100.00%> (+100.00%) :arrow_up:
components/ServerInput.js 100.00% <100.00%> (+100.00%) :arrow_up:
components/RefreshWebView.js 63.63% <0.00%> (+63.63%) :arrow_up:
constants/Links.js 100.00% <0.00%> (+100.00%) :arrow_up:
hooks/useStores.js 100.00% <0.00%> (+100.00%) :arrow_up:
components/ThemeSwitcher.js 100.00% <0.00%> (+100.00%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 884504b...17da186. Read the comment docs.

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication