0.0.6 ā€¢ Published 3 years ago

hardhat-jest-plugin v0.0.6

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

Build Status TypeScript

Experimental, untested proof of concept hardhat-jest-plugin

šŸ‘·ā€ā™€ļøšŸ‘·ā€ā™‚ļø

The plugin enables the use of Jest as a test runner.

npm.io

What

This plugin will make it possible to benefit from both the features Jest provides, as well as the HRE for an optimal debugging experience.

Installation

npm install hardhat-jest-plugin jest

Import the plugin in your hardhat.config.js:

require("hardhat-jest-plugin");

Or if you are using TypeScript, in your hardhat.config.ts:

import "hardhat-jest-plugin";

Required plugins

None, yet.

Tasks

This plugin adds the test:jest task to Hardhat:

output of `npx hardhat help example`

Environment extensions

None.

Configuration

None, yet.

Usage

There are no additional steps you need to take for this plugin to work.

Install it and run it with hardhat test:jest