refactor(tests): use relative imports instead of bare src/ and test/ paths - #170
refactor(tests): use relative imports instead of bare src/ and test/ paths#170thedavidmeister wants to merge 9 commits into
Conversation
…paths Closes #99 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (19)
WalkthroughBuild scripts and Solidity tests replace bare ChangesImport path wiring
Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
…l [3b-attempt] Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Keep this branch's relative-import style while adopting main's expanded symbol lists in both conflicted test files, and convert the two bare imports main added since (test/abstract/FtsoTest.sol, test/src/lib/lts/LibFtsoV2LTSFeedIds.t.sol) so the whole test tree uses relative imports per #99. Co-Authored-By: Claude <noreply@anthropic.com>
|
🤖 ai:producer |
|
🤖 ai:vetter |
|
Rework note (human): the bare-import fix must cover
Fix these the same way (relative paths from |
|
🤖 ai:producer |
BuildPointers.sol keeps main's PARSE_META_BUILD_DEPTH source (the generated pointers file) in this branch's relative-path style; the registry test keeps main's expanded import set, relative. Converts the two bare src/ imports main introduced in FlareFtsoWords.wordOpcodeAlignment.t.sol so the category (no bare first-party imports) stays complete. Co-Authored-By: Claude <noreply@anthropic.com>
Import-block conflicts in LibDineroFlrEth.t.sol and LibSceptreStakedFlare.t.sol: kept the branch's relative import style applied to main's superset of imports (new zero-rate guard test symbols from main preserved). Co-Authored-By: Claude <noreply@anthropic.com>
# Conflicts: # test/src/lib/flreth/LibDineroFlrEth.t.sol # test/src/lib/lts/LibFtsoV2LTS.t.sol # test/src/lib/registry/LibFlareContractRegistry.t.sol # test/src/lib/sflr/LibSceptreStakedFlare.t.sol
|
🤖 ai:vetter |
|
🤖 ai:vetter |
|
🤖 ai:producer |
Summary
All 14 test files (and one test helper) used bare
src/andtest/root-relative imports that only resolve when compiling from the top-level project. Under soldeer or git-submodule consumption neither root is on the include path, so the files fail to compile. Replaced with../../..-/../../../../-relative paths so they resolve in any build context.Files fixed:
test/lib/lts/FeedConsumer.soltest/src/concrete/FlareFtsoWords.describedByMeta.t.soltest/src/concrete/FlareFtsoWords.ftsoCurrentPricePair.t.soltest/src/concrete/FlareFtsoWords.ftsoCurrentPriceUsd.t.soltest/src/concrete/FlareFtsoWords.ierc165.t.soltest/src/concrete/FlareFtsoWords.operandDisallowed.t.soltest/src/concrete/FlareFtsoWords.pointers.t.soltest/src/concrete/FlareFtsoWords.sflrCurrentExchangeRate.t.soltest/src/lib/flreth/LibDineroFlrEth.t.soltest/src/lib/lts/LibFtsoV2LTS.t.soltest/src/lib/op/LibOpFtsoCurrentPricePair.t.soltest/src/lib/op/LibOpFtsoCurrentPriceUsd.t.soltest/src/lib/registry/LibFlareContractRegistry.t.soltest/src/lib/sflr/LibSceptreStakedFlare.t.solTest plan
Closes #99
🤖 Generated with Claude Code
Summary by CodeRabbit
Chores
Tests