Socket
Socket
Sign inDemoInstall

jest-environment-hardhat

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-environment-hardhat - npm Package Compare versions

Comparing version 1.1.7 to 1.1.8

2

package.json
{
"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):

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc