Skip to content

Conversation

@alwx
Copy link
Contributor

@alwx alwx commented Aug 14, 2025

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Migrates from the deprecated react-test-renderer to @testing-library/react-native which is the currently recommended library for UI testing.

Fixes #4811

💡 Motivation and Context

It unblocks #4942

💚 How did you test it?

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • No breaking changes

🔮 Next steps

#skip-changelog

@github-actions
Copy link
Contributor

github-actions bot commented Aug 14, 2025

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 395.82 ms 428.86 ms 33.04 ms
Size 17.75 MiB 20.15 MiB 2.41 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
c08359e 421.87 ms 445.37 ms 23.50 ms
98f632c 424.25 ms 435.48 ms 11.23 ms
785ffb1 471.92 ms 460.96 ms -10.96 ms
d916aa3 425.37 ms 427.02 ms 1.65 ms
3e0a5f9 401.72 ms 394.98 ms -6.74 ms
eb07ba3 470.04 ms 473.35 ms 3.31 ms
e2fa43d 451.68 ms 462.42 ms 10.74 ms
7be1f99 454.83 ms 461.36 ms 6.53 ms
21c9e75 450.39 ms 452.92 ms 2.53 ms
64cd15c 439.02 ms 427.63 ms -11.39 ms

App size

Revision Plain With Sentry Diff
c08359e 17.75 MiB 20.15 MiB 2.41 MiB
98f632c 17.75 MiB 20.15 MiB 2.41 MiB
785ffb1 17.75 MiB 20.15 MiB 2.41 MiB
d916aa3 17.75 MiB 20.15 MiB 2.41 MiB
3e0a5f9 17.75 MiB 20.15 MiB 2.41 MiB
eb07ba3 17.75 MiB 20.15 MiB 2.41 MiB
e2fa43d 17.75 MiB 20.15 MiB 2.41 MiB
7be1f99 17.75 MiB 20.15 MiB 2.41 MiB
21c9e75 17.75 MiB 20.15 MiB 2.41 MiB
64cd15c 17.75 MiB 20.15 MiB 2.41 MiB

Previous results on branch: alwx/improvement/testing-library

Startup times

Revision Plain With Sentry Diff
0f5175d 431.41 ms 455.21 ms 23.80 ms

App size

Revision Plain With Sentry Diff
0f5175d 17.75 MiB 20.15 MiB 2.41 MiB

@github-actions
Copy link
Contributor

github-actions bot commented Aug 14, 2025

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 423.69 ms 509.47 ms 85.77 ms
Size 7.15 MiB 8.42 MiB 1.27 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
e2fa43d+dirty 326.56 ms 372.88 ms 46.32 ms
eb07ba3+dirty 419.49 ms 482.12 ms 62.63 ms
bc9680d+dirty 346.77 ms 463.48 ms 116.71 ms
a0b15d6+dirty 414.33 ms 448.85 ms 34.52 ms
c08359e+dirty 406.04 ms 428.87 ms 22.83 ms
785ffb1+dirty 380.65 ms 451.83 ms 71.18 ms
64cd15c+dirty 488.79 ms 483.54 ms -5.24 ms
21c9e75+dirty 356.73 ms 381.06 ms 24.33 ms
3e0a5f9+dirty 379.92 ms 450.96 ms 71.04 ms
98f632c+dirty 323.98 ms 375.39 ms 51.41 ms

App size

Revision Plain With Sentry Diff
e2fa43d+dirty 7.15 MiB 8.42 MiB 1.27 MiB
eb07ba3+dirty 7.15 MiB 8.42 MiB 1.27 MiB
bc9680d+dirty 7.15 MiB 8.42 MiB 1.27 MiB
a0b15d6+dirty 7.15 MiB 8.42 MiB 1.27 MiB
c08359e+dirty 7.15 MiB 8.42 MiB 1.27 MiB
785ffb1+dirty 7.15 MiB 8.42 MiB 1.27 MiB
64cd15c+dirty 7.15 MiB 8.42 MiB 1.27 MiB
21c9e75+dirty 7.15 MiB 8.42 MiB 1.27 MiB
3e0a5f9+dirty 7.15 MiB 8.42 MiB 1.27 MiB
98f632c+dirty 7.15 MiB 8.42 MiB 1.27 MiB

Previous results on branch: alwx/improvement/testing-library

Startup times

Revision Plain With Sentry Diff
0f5175d+dirty 397.93 ms 476.92 ms 78.98 ms

App size

Revision Plain With Sentry Diff
0f5175d+dirty 7.15 MiB 8.42 MiB 1.27 MiB

@github-actions
Copy link
Contributor

github-actions bot commented Aug 14, 2025

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1228.14 ms 1228.38 ms 0.24 ms
Size 2.63 MiB 3.81 MiB 1.18 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
21c9e75+dirty 1237.78 ms 1247.66 ms 9.88 ms
534ba8c+dirty 1230.22 ms 1231.18 ms 0.96 ms
c08359e+dirty 1235.25 ms 1233.96 ms -1.29 ms
3e0a5f9+dirty 1226.94 ms 1230.02 ms 3.08 ms
bc9680d+dirty 1221.41 ms 1241.47 ms 20.06 ms
eb07ba3+dirty 1222.46 ms 1220.37 ms -2.08 ms
a0b15d6+dirty 1220.18 ms 1223.18 ms 3.00 ms
e2fa43d+dirty 1216.04 ms 1232.65 ms 16.61 ms
785ffb1+dirty 1237.63 ms 1240.50 ms 2.87 ms
d916aa3+dirty 1221.02 ms 1228.98 ms 7.96 ms

App size

Revision Plain With Sentry Diff
21c9e75+dirty 2.63 MiB 3.81 MiB 1.18 MiB
534ba8c+dirty 2.63 MiB 3.81 MiB 1.18 MiB
c08359e+dirty 2.63 MiB 3.81 MiB 1.18 MiB
3e0a5f9+dirty 2.63 MiB 3.81 MiB 1.18 MiB
bc9680d+dirty 2.63 MiB 3.81 MiB 1.18 MiB
eb07ba3+dirty 2.63 MiB 3.81 MiB 1.18 MiB
a0b15d6+dirty 2.63 MiB 3.81 MiB 1.18 MiB
e2fa43d+dirty 2.63 MiB 3.81 MiB 1.18 MiB
785ffb1+dirty 2.63 MiB 3.81 MiB 1.18 MiB
d916aa3+dirty 2.63 MiB 3.81 MiB 1.18 MiB

Previous results on branch: alwx/improvement/testing-library

Startup times

Revision Plain With Sentry Diff
0f5175d+dirty 1231.08 ms 1244.65 ms 13.57 ms

App size

Revision Plain With Sentry Diff
0f5175d+dirty 2.63 MiB 3.81 MiB 1.18 MiB

@github-actions
Copy link
Contributor

github-actions bot commented Aug 14, 2025

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1197.02 ms 1185.43 ms -11.59 ms
Size 3.19 MiB 4.38 MiB 1.19 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
21c9e75+dirty 1206.20 ms 1223.54 ms 17.35 ms
534ba8c+dirty 1225.00 ms 1237.43 ms 12.43 ms
c08359e+dirty 1200.59 ms 1211.81 ms 11.22 ms
3e0a5f9+dirty 1233.65 ms 1239.10 ms 5.45 ms
bc9680d+dirty 1228.57 ms 1233.64 ms 5.07 ms
eb07ba3+dirty 1214.49 ms 1221.59 ms 7.10 ms
a0b15d6+dirty 1213.79 ms 1210.45 ms -3.34 ms
e2fa43d+dirty 1224.43 ms 1235.40 ms 10.98 ms
785ffb1+dirty 1213.71 ms 1213.37 ms -0.35 ms
d916aa3+dirty 1211.02 ms 1221.33 ms 10.31 ms

App size

Revision Plain With Sentry Diff
21c9e75+dirty 3.19 MiB 4.38 MiB 1.19 MiB
534ba8c+dirty 3.19 MiB 4.38 MiB 1.19 MiB
c08359e+dirty 3.19 MiB 4.38 MiB 1.19 MiB
3e0a5f9+dirty 3.19 MiB 4.38 MiB 1.19 MiB
bc9680d+dirty 3.19 MiB 4.38 MiB 1.19 MiB
eb07ba3+dirty 3.19 MiB 4.38 MiB 1.19 MiB
a0b15d6+dirty 3.19 MiB 4.38 MiB 1.19 MiB
e2fa43d+dirty 3.19 MiB 4.38 MiB 1.19 MiB
785ffb1+dirty 3.19 MiB 4.38 MiB 1.19 MiB
d916aa3+dirty 3.19 MiB 4.38 MiB 1.19 MiB

Previous results on branch: alwx/improvement/testing-library

Startup times

Revision Plain With Sentry Diff
0f5175d+dirty 1226.36 ms 1243.88 ms 17.52 ms

App size

Revision Plain With Sentry Diff
0f5175d+dirty 3.19 MiB 4.38 MiB 1.19 MiB

@alwx alwx force-pushed the alwx/improvement/testing-library branch from 55e12f0 to fe3592e Compare August 25, 2025 10:57
@alwx alwx force-pushed the alwx/improvement/testing-library branch from fe3592e to e54eb3c Compare August 25, 2025 10:58
@alwx alwx changed the title WIP: improvement(testing): migrating from the deprecated react-test-renderer improvement(testing): migrating from the deprecated react-test-renderer Aug 25, 2025
@alwx alwx marked this pull request as ready for review August 25, 2025 11:01
@lucas-zimerman
Copy link
Collaborator

Thank you for the PR! overall the tests looks good, but tests are not running sadly

Copy link
Contributor

@antonis antonis left a comment

Choose a reason for hiding this comment

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

Thank you for handling this @alwx 🙇
The changes LGTM and the CI checks are happy 🎉

@alwx alwx merged commit c358971 into main Aug 27, 2025
95 of 96 checks passed
@alwx alwx deleted the alwx/improvement/testing-library branch August 27, 2025 17:52
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.

Move from deprecated react-test-renderer

4 participants