From 33410fa792c99d100f836c9962628653fc7d8a76 Mon Sep 17 00:00:00 2001 From: Mati Date: Mon, 30 Jan 2023 19:42:17 -0300 Subject: [PATCH] Add mocha --- .mocharc.json | 5 +++++ package-lock.json | 3 ++- package.json | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .mocharc.json diff --git a/.mocharc.json b/.mocharc.json new file mode 100644 index 0000000..c2acc63 --- /dev/null +++ b/.mocharc.json @@ -0,0 +1,5 @@ +{ + "require": "hardhat/register", + "timeout": 40000, + "_": ["test/**/*.ts"] +} diff --git a/package-lock.json b/package-lock.json index 3bdb4c8..8d01938 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,8 @@ "@nomicfoundation/hardhat-toolbox": "^2.0.1", "@nomiclabs/hardhat-solhint": "^3.0.0", "dotenv": "^16.0.3", - "hardhat": "^2.12.6" + "hardhat": "^2.12.6", + "mocha": "^10.2.0" } }, "node_modules/@babel/code-frame": { diff --git a/package.json b/package.json index 9a583be..49e7618 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "@nomicfoundation/hardhat-toolbox": "^2.0.1", "@nomiclabs/hardhat-solhint": "^3.0.0", "dotenv": "^16.0.3", - "hardhat": "^2.12.6" + "hardhat": "^2.12.6", + "mocha": "^10.2.0" } }