Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/solidstate-network/hardhat-test-short-circuit

🛑 Stop Hardhat test execution on demand and print output from completed tests ⚡
https://github.com/solidstate-network/hardhat-test-short-circuit

eth ether ethereum hardhat mocha plugin test wow

Last synced: about 1 month ago
JSON representation

🛑 Stop Hardhat test execution on demand and print output from completed tests ⚡

Awesome Lists containing this project

README

        

# Hardhat Test Short Circuit

Stop Hardhat test execution on demand and print output from completed tests.

## Installation

```bash
npm install --save-dev @solidstate/hardhat-test-short-circuit
# or
yarn add --dev @solidstate/hardhat-test-short-circuit
```

## Usage

Load plugin in Hardhat config:

```javascript
require('@solidstate/hardhat-test-short-circuit');
```

Run the included Hardhat task while tests are running to skip all pending tests:

```bash
npx hardhat short-circuit
# or
yarn run hardhat short-circuit
```

## Development

Install dependencies via Yarn:

```bash
yarn install
```

Setup Husky to format code on commit:

```bash
yarn prepare
```