diff --git a/Cargo.toml b/Cargo.toml index ba5755c5cea..86a1c0480e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,4 +6,3 @@ members = [ [profile.release] panic = 'unwind' -opt-level = 0 diff --git a/tests/package.json b/tests/package.json index 8332d90f7c4..b8a84e6c7d2 100644 --- a/tests/package.json +++ b/tests/package.json @@ -3,9 +3,36 @@ "version": "1.0.0", "description": "", "main": "index.js", + "watch": { + "build": { + "patterns": [ + "../" + ], + "ignore": [ + "../tests", + "../target", + "../build" + ], + "extensions": "rs", + "quiet": true, + "inherit": true + }, + "test": { + "patterns": [ + "../target/release/moonbeam", + "./tests/**" + ], + "extensions": "ts,html,scss", + "quiet": true, + "inherit": true, + "runOnChangeOnly": true + } + }, "scripts": { "test-with-logs": "mocha --printlogs -r ts-node/register 'tests/**/*.ts'", "test": "mocha --parallel -r ts-node/register 'tests/**/*.ts'", + "watch": "npm-watch", + "build": "cargo build --release", "non-ci-test": "mocha -r ts-node/register 'non_ci_tests/**/*.ts'" }, "author": "", @@ -19,6 +46,7 @@ "ethers": "^5.1.0", "mocha": "^8.3.2", "mocha-steps": "^1.3.0", + "npm-watch": "^0.9.0", "rimraf": "^3.0.2", "tcp-port-used": "^1.0.2", "ts-node": "9.1",