From c74a270579d5c1ed00d598e02d2d8180f520ff0d Mon Sep 17 00:00:00 2001 From: EmperorOrokuSaki Date: Thu, 8 Dec 2022 16:22:17 +0330 Subject: [PATCH] Update test commands & add forge-cache and out to .gitignore --- .gitignore | 4 ++++ package.json | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 343c5ca..b7838d5 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,7 @@ artifacts # NPM package-lock.json artifacts + +# Foundry +out +forge-cache \ No newline at end of file diff --git a/package.json b/package.json index 855f296..4efddd7 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,13 @@ "description": "", "main": "index.js", "scripts": { - "test": "hardhat test", + "test": "hardhat test && forge test --via-ir", + "test:foundry": "forge test --via-ir", + "test:hardhat": "hardhat test", "format": "prettier --write \"./**/*.{js,ts,sol}\"", - "node:hh": "hardhat node --tags local", + "node:hardhat": "hardhat node --tags local", "deploy:local": "hardhat deploy --tags local", "deploy:mumbai": "hardhat deploy --tags mumbai", - "interact": "npx hardhat run deploy/interact.js --network hardhat", "compile": "hardhat compile" }, "repository": {