From 0f7a68a9f81e575e8499c8e46dfb861ce17c788b Mon Sep 17 00:00:00 2001 From: David Racero Date: Tue, 2 Feb 2021 15:05:25 +0100 Subject: [PATCH] (feat) run compile prior running tests at package.json script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4fefea1b..0226ae32 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "hardhat:docker": "hardhat --network hardhatevm_docker", "compile": "SKIP_LOAD=true hardhat compile", "console:fork": "MAINNET_FORK=true hardhat console", - "test": "TS_NODE_TRANSPILE_ONLY=1 hardhat test ./test/*.spec.ts", + "test": "npm run compile && TS_NODE_TRANSPILE_ONLY=1 hardhat test ./test/*.spec.ts", "test-scenarios": "npm run test -- test/__setup.spec.ts test/scenario.spec.ts", "test-repay-with-collateral": "hardhat test test/__setup.spec.ts test/repay-with-collateral.spec.ts", "test-liquidate-with-collateral": "hardhat test test/__setup.spec.ts test/flash-liquidation-with-collateral.spec.ts",