From 36c165009cebc09d8fe623d92ec8c4812bef0a24 Mon Sep 17 00:00:00 2001 From: msinkec Date: Wed, 14 Feb 2024 14:35:04 +0100 Subject: [PATCH] Compile before all test scripts. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f9d19505..7b381967 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "pretest": "npm run compile", "test": "npm run test:mocha", "test:mocha": "cross-env NETWORK=local mocha -i -f 'Heavy'", - "test:all": "cross-env NETWORK=local mocha --no-timeouts", - "test:testnet": "cross-env NETWORK=testnet mocha -i -f 'Heavy' --no-timeouts", + "test:all": "npm run pretest && cross-env NETWORK=local mocha --no-timeouts", + "test:testnet": "npm run pretest && cross-env NETWORK=testnet mocha -i -f 'Heavy' --no-timeouts", "lint": "eslint . --ext .js,.ts --fix && prettier --write --ignore-unknown \"**/*\"", "lint-check": "eslint . --ext .js,.ts && prettier --check --ignore-unknown \"**/*\"", "prepare": "husky install",