rewrite test src/ imports to relative paths#452
Conversation
Bare `src/` imports break when this repo is consumed as a Foundry git submodule — `src/` resolves to the parent project's source directory, not this submodule's. Every test import now uses a relative path appropriate to its file's depth. Closes #411. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
WalkthroughThis PR updates import paths across 13 test files from bare ChangesImport Path Corrections
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related issues
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
…bare-src-imports # Conflicts: # test/src/concrete/Flow.construction.t.sol
Summary
Bare
src/imports break when this repo is consumed as a Foundry git submodule —src/resolves to the parent project's source directory, not this submodule's. Every test import now uses a relative path appropriate to its file's depth (../../src/...,../../../src/..., or../../../../src/...).14 test files updated, 19 imports rewritten.
Closes #411.
Test plan
forge buildclean (114 files compile)rainix-sol-test— 31/31🤖 Generated with Claude Code
Summary by CodeRabbit