diff --git a/.mocharc.json b/.mocharc.json new file mode 100644 index 00000000..c2acc636 --- /dev/null +++ b/.mocharc.json @@ -0,0 +1,5 @@ +{ + "require": "hardhat/register", + "timeout": 40000, + "_": ["test/**/*.ts"] +} diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 7d5d7da3..136d7571 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,3 +1,6 @@ { - "recommendations": ["NomicFoundation.hardhat-solidity"] + "recommendations": [ + "NomicFoundation.hardhat-solidity", + "hbenl.vscode-mocha-test-adapter" + ] } diff --git a/package-lock.json b/package-lock.json index 08278d44..a6f29eb5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,7 @@ "eslint": "^8.23.0", "eslint-config-prettier": "^8.5.0", "hardhat": "^2.11.1", + "mocha": "^10.0.0", "prettier": "^2.7.1", "prettier-plugin-solidity": "^1.0.0-beta.24", "typescript": "^4.8.2" diff --git a/package.json b/package.json index a6eb09ba..1ed1e2f9 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "eslint": "^8.23.0", "eslint-config-prettier": "^8.5.0", "hardhat": "^2.11.1", + "mocha": "^10.0.0", "prettier": "^2.7.1", "prettier-plugin-solidity": "^1.0.0-beta.24", "typescript": "^4.8.2"