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

fix: fixed test:runner for multiple blockchain #21

Merged
merged 6 commits into from
Nov 5, 2021

Conversation

pradyuman-verma
Copy link
Contributor

@pradyuman-verma pradyuman-verma commented Nov 1, 2021

The problem with the last merged PR is that we have used network.name to segregate the blockchain network.
But it always gives hardhat as its network type. Hence all tests other than mainnet will again fail.

So, this PR tries another way to fix that bug by dynamically providing URL to hardhat.config by using the command line, which changes the process.env variable accordingly.

I have also added arbitrum and polygon mainnet forking URLs for future references in the config file and minor changes to .env.example.

This PR also added a global test running script integrated with the npm run test command.
You only have to use one command to run all tests of different blockchains; the script will automatically change the config.

@KaymasJain KaymasJain self-requested a review November 4, 2021 09:03
@KaymasJain KaymasJain mentioned this pull request Nov 5, 2021
@KaymasJain KaymasJain merged commit d84e035 into Instadapp:main Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants