chore(apps): unit test improvements - #40785
Conversation
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughMigrate ChangesTest Storage Migration
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Looks like this PR is ready to merge! 🎉 |
d754717 to
5ddb6de
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #40785 +/- ##
===========================================
- Coverage 70.11% 70.10% -0.02%
===========================================
Files 3363 3363
Lines 129716 129716
Branches 22464 22489 +25
===========================================
- Hits 90953 90939 -14
- Misses 35442 35454 +12
- Partials 3321 3323 +2
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
2 issues found across 5 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
@copilot |
... Both reported issues were valid and shared the same root cause in the in-memory test storage implementation:
Fixed in commit |
547ab51 to
2984037
Compare
f069525 to
4c3f573
Compare
f02a919 to
b1e5eba
Compare
commit b1e5eba Author: Douglas Gubert <douglas.gubert@gmail.com> Date: Thu Jun 25 13:07:19 2026 -0300 test(apps): clean deno-runtime temp link before running commit c39875e Author: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Date: Fri Jun 5 17:57:10 2026 +0000 test(apps): preserve _id and support _id partial updates in test storage commit 114e5e7 Author: Douglas Gubert <douglas.gubert@gmail.com> Date: Wed Jun 3 16:37:07 2026 -0300 chore: add @RocketChat/apps as codeowner of more paths commit 28a45be Author: Douglas Gubert <douglas.gubert@gmail.com> Date: Wed Jun 3 15:54:13 2026 -0300 chore(apps): loosen permissions for deno test commit 1895ed4 Author: Douglas Gubert <douglas.gubert@gmail.com> Date: Wed Jun 3 15:46:33 2026 -0300 chore(apps): replace nedb in tests for custom mock fix mock commit 660215a Author: Ricardo Garim <rswarovsky@gmail.com> Date: Thu Jun 25 11:06:59 2026 -0300 chore: use @rocket.chat/logger in presence service (#41034)
commit b1e5eba Author: Douglas Gubert <douglas.gubert@gmail.com> Date: Thu Jun 25 13:07:19 2026 -0300 test(apps): clean deno-runtime temp link before running commit c39875e Author: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Date: Fri Jun 5 17:57:10 2026 +0000 test(apps): preserve _id and support _id partial updates in test storage commit 114e5e7 Author: Douglas Gubert <douglas.gubert@gmail.com> Date: Wed Jun 3 16:37:07 2026 -0300 chore: add @RocketChat/apps as codeowner of more paths commit 28a45be Author: Douglas Gubert <douglas.gubert@gmail.com> Date: Wed Jun 3 15:54:13 2026 -0300 chore(apps): loosen permissions for deno test commit 1895ed4 Author: Douglas Gubert <douglas.gubert@gmail.com> Date: Wed Jun 3 15:46:33 2026 -0300 chore(apps): replace nedb in tests for custom mock fix mock commit 660215a Author: Ricardo Garim <rswarovsky@gmail.com> Date: Thu Jun 25 11:06:59 2026 -0300 chore: use @rocket.chat/logger in presence service (#41034)
|
/jira ARCH-2228 |
Proposed changes (including videos or screenshots)
@seald-io/nedbdependency from apps unit tests - unnecessary complexity and eventual flakiness/tmptemporary directory (e.g. OSX), and permissions in unit tests don't need to be that restricting anyway.Issue(s)
Steps to test or reproduce
Further comments
Summary by CodeRabbit
null), addedclear(), and completed update operations.Task: ARCH-2275