jest-environment-hardhat
Advanced tools
Comparing version 1.1.7 to 1.1.8
{ | ||
"name": "jest-environment-hardhat", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "A jest environment with hardhat built in", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/Uniswap/jest-environment-hardhat", |
@@ -23,6 +23,6 @@ # jest-environment-hardhat | ||
Then, set up your `hardhat.config.js` file. | ||
You'll need to [require `@nomiclabs/hardhat-ethers` from your `hardhat.config.js` file[(https://github.com/NomicFoundation/hardhat/tree/master/packages/hardhat-ethers#installation)] in order to install it as a hardhat plugin. | ||
You'll need to [require `@nomiclabs/hardhat-ethers` from your `hardhat.config.js` file](https://github.com/NomicFoundation/hardhat/tree/master/packages/hardhat-ethers#installation) in order to install it as a hardhat plugin. | ||
You'll also need to [configure mainnet forking](https://hardhat.org/hardhat-network/guides/mainnet-forking#forking-from-mainnet) to set the initial state of the hardhat network within jest. | ||
NOTE: You should set the [`accounts` field](https://hardhat.org/hardhat-network/reference#accounts) to be as few as possible to reduce startup time for your tests' hardhat network. | ||
NOTE: You should set the [`accounts` field](https://hardhat.org/hardhat-network/reference#accounts) to include as few accounts as possible to reduce startup time for your tests' hardhat network. | ||
@@ -29,0 +29,0 @@ Then, use the runner either using a doc-comment, or using jest configuration (see the [jest documentation](https://jestjs.io/docs/configuration#testenvironment-string) for details): |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97156