Skip to content
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

Replace e2e fork node with anvil #3781

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Conversation

hyphenized
Copy link
Collaborator

@hyphenized hyphenized commented Feb 14, 2025

This updates fork tests to run on anvil instead of hardhat. The change significantly improves test speed and prevents hangups. Even for simple cases anvil performs better without a cache.

Latest build: extension-builds-3781 (as of Sun, 16 Feb 2025 00:34:47 GMT).

Removes dependency on env vars and adds a script shortcut to run fork tests
This will come useful when we need a deterministic name for test
assertions.
Previous approach would have missed updates if a price fetch was requested
after detecting a new token balance. This also increases the frequency of
price updates.
Since local nodes require higher gas to fulfill read only calls these would
sometimes fail silently when done through multicall.
This updates fork tests to run on anvil instead of hardhat. The change
significantly improves test speed and prevents hangups. Even for simple
cases anvil performs better without a cache.
@hyphenized hyphenized force-pushed the testing-tests-e2e-fork branch 5 times, most recently from 63e5331 to 1c43fb9 Compare February 15, 2025 22:52
@hyphenized hyphenized force-pushed the testing-tests-e2e-fork branch from 1c43fb9 to 089cc93 Compare February 15, 2025 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant