Convert to npm workspace, add router tests#6579
Conversation
WalkthroughRefactors testing to multi-project/workspace layout, updates ESLint config, guards ResizeObserver usage for non-browser environments, adjusts website package/build configs and Vite aliases, refactors website markup/CSS and navigation matching, and adds a comprehensive route test suite for the site. Changes
Sequence Diagram(s)mermaid mermaid Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (1 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
💤 Files with no reviewable changes (5)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
Comment |
…ace installs it all from the root
Bundle ReportChanges will increase total bundle size by 236 bytes (0.01%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: recharts/bundle-es6Assets Changed:
view changes for bundle: recharts/bundle-cjsAssets Changed:
view changes for bundle: recharts/bundle-umdAssets Changed:
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6579 +/- ##
==========================================
+ Coverage 91.18% 94.58% +3.39%
==========================================
Files 492 492
Lines 40999 40994 -5
Branches 4584 4748 +164
==========================================
+ Hits 37384 38773 +1389
+ Misses 3598 2216 -1382
+ Partials 17 5 -12 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
I wanted to have unit tests for the router but was struggling with mixed React instances. Turns out that npm workspaces are quite easy to set up and solve exactly this problem so let's have that.
I also added tests, fixed couple of bugs discovered by those tests and updated eslint config to have fewer warnings.
Summary by CodeRabbit
Bug Fixes
Improvements
Tests
Chores