-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: try running prb-math solidity tests in the example-project #5808
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
hardhatTotal size of the bundle: List of dependencies (sorted by size)
|
I'm going to close it and prepare a research/design doc in Notion, instead. |
This PR is a showcase of running solidity tests of a real world project with Hardhat v3. The tests use the standard library.
Here's the successful output from
pnpm hardhat test:solidity
:I also tried breaking a test to make sure we're actually running them 😜
What did I do to make it work?
pnpm
(pnpm add https://github.com/foundry-rs/forge-std/tarball/v1.9.2
)pnpm
(pnpm add https://github.com/PaulRBerg/prb-math/tarball/v4.0.3
; I did that so I wouldn't have to copy thesrc
ofprb-math
to theexample-project
)test
directory fromnode_modulels/@prb/math
to theexample-project
(I also removed*.tree
files; these likely should have been gitignored in the first place)src
imports (e.g.import from "src/..."
) with imports from the node dependency (@prb/math
)src
imports (e.g.import from "../../src/..."
) with imports from the node dependency (@prb/math
)pnpm hardhat test:solidity
)Here's the
forge test
output for comparison: