Itests mainnet prep#1729
Conversation
|
Codecov Report
@@ Coverage Diff @@
## regenesis/0.5.0 #1729 +/- ##
================================================
Coverage 72.64% 72.64%
================================================
Files 69 69
Lines 2274 2274
Branches 337 337
================================================
Hits 1652 1652
Misses 622 622
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
integration-tests/test/rpc.spec.ts
Outdated
There was a problem hiding this comment.
Out of scope of this PR but I think defaultTransactionFactory should accept and object where the keys are the values that overrides what it returns by default
There was a problem hiding this comment.
What do you think about parsing the env as part of OptimismEnv? And also logging the values in the before block so we know they are being set
There was a problem hiding this comment.
I'm torn on this one. IMO OptimismEnv should contain stuff related to Optimism itself. Then each test can define its own env vars if they need additional ones. My worry about adding this to OptimismEnv is turning it into a "god class" that's difficult to maintain.
Agreed re: logging - I'll put that in.
There was a problem hiding this comment.
I see your point - I wouldn't be opposed to defining another getter class for the uniswap env vars to abstract away process.env, but fine as is also
7f91bed to
cdfdcc4
Compare
cdfdcc4 to
d1535df
Compare
This PR gets integration tests into shape to work against mainnet. Specific changes include: