Skip to content

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

License

Notifications You must be signed in to change notification settings

solidstate-network/hardhat-test-short-circuit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hardhat Test Short Circuit

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

Installation

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

Usage

Load plugin in Hardhat config:

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

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

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

Development

Install dependencies via Yarn:

yarn install

Setup Husky to format code on commit:

yarn prepare