Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

buidler-test-isolater

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buidler-test-isolater

Run each Mocha test in a separate BRE

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Buidler Test Isolater

Reinitialize the Buidler Runtime Environment before each Mocha test.

Installation

yarn add --dev buidler-test-isolater

Usage

Load plugin in Buidler config:

usePlugin('buidler-test-isolater');

This plugin is intended for use in combination with the buidler-ganache plugin when testing against a forked network. Re-initializing the network before each test prevents errors such as the following:

Error: Returned error: project ID does not have access to archive state

This plugin is not compatible with Mocha describe-level exclusive tests.

Isolated tests are run via a temporary file .buidler_test_isolater_tmp.js created in the buidler tests directory. This file is deleted upon test completion, but may not be removed if test execution halts unexpectedly; therefore, it should be added to the .gitignore file or deleted manually.

Keywords

FAQs

Package last updated on 22 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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