Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rryter/hardhat-jest-plugin
A Jest plugin for Hardhat.
https://github.com/rryter/hardhat-jest-plugin
jest tdd
Last synced: 20 days ago
JSON representation
A Jest plugin for Hardhat.
- Host: GitHub
- URL: https://github.com/rryter/hardhat-jest-plugin
- Owner: rryter
- License: mit
- Created: 2020-10-31T10:59:30.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T15:10:05.000Z (almost 2 years ago)
- Last Synced: 2024-12-12T02:20:09.077Z (30 days ago)
- Topics: jest, tdd
- Language: TypeScript
- Homepage: https://hardhat.org/
- Size: 2.09 MB
- Stars: 19
- Watchers: 1
- Forks: 5
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.com/rryter/hardhat-jest-plugin.svg?branch=master)](https://travis-ci.com/rryter/hardhat-jest-plugin)
[![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/)# Experimental, untested proof of concept hardhat-jest-plugin
👷♀️👷♂️
The plugin enables the use of [Jest](https://jestjs.io/) as a test runner.
![](hardhat-jest-plugin.gif)
## 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
```bash
npm install hardhat-jest-plugin jest
```Import the plugin in your `hardhat.config.js`:
```js
require("hardhat-jest-plugin");
```Or if you are using TypeScript, in your `hardhat.config.ts`:
```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`