From f9010002c0921bfbdd1692ea3138e72aaa1429aa Mon Sep 17 00:00:00 2001 From: Ryan Goulding Date: Wed, 25 Oct 2023 15:38:29 -0700 Subject: [PATCH] Decrease Unit Test Time Run tests in parallel. Anecdotally, this cut test time by 50% on my local machine. Signed-off-by: Ryan Goulding --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 149a8b56..c402a18a 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "description": "example contracts", "main": "index.js", "scripts": { - "test": "npx hardhat test", + "test": "npx hardhat test --parallel", "prettier": "prettier --write test/**/*.js && prettier --write test/*/*/*.js && prettier --write deploy/*.js && prettier --write tasks/*.js && prettier --write contracts/**/*.sol && prettier --write contracts/**/**/*.sol && prettier --write contracts/**/**/**/*.sol", "lint": "yarn prettier && solhint 'contracts/*.sol' && solhint 'contracts/**/*.sol' && solhint 'contracts/**/**/*.sol' && solhint 'contracts/**/**/**/*.sol'" },