Commit d1b7063d authored by Maurelian's avatar Maurelian

bmon: Move test command into a script

parent a2efb2dc
export L1_RPC_URL= export L1_RPC_URL=
# Prepopulated with test values. export SEQUENCER_ADDRESS=
export SEQUENCER_ADDRESS=0xabba export SEQUENCER_WARNING_THRESHOLD=
export SEQUENCER_WARNING_THRESHOLD=1000 export SEQUENCER_DANGER_THRESHOLD=
export SEQUENCER_DANGER_THRESHOLD=100
export PROPOSER_ADDRESS=0xacdc export PROPOSER_ADDRESS=
export PROPOSER_WARNING_THRESHOLD=2000 export PROPOSER_WARNING_THRESHOLD=
export PROPOSER_DANGER_THRESHOLD=200 export PROPOSER_DANGER_THRESHOLD=
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"tx": "yarn run build && forta-agent run --tx", "tx": "yarn run build && forta-agent run --tx",
"block": "yarn run build && forta-agent run --block", "block": "yarn run build && forta-agent run --block",
"range": "yarn run build && forta-agent run --range", "range": "yarn run build && forta-agent run --range",
"test": "/bin/sh . .env.example && yarn ts-mocha src/*.spec.ts", "test": "./scripts/test.sh",
"test:coverage": "echo 'todo: configure test coverage' && yarn test", "test:coverage": "echo 'todo: configure test coverage' && yarn test",
"lint:check": "eslint . --max-warnings=0", "lint:check": "eslint . --max-warnings=0",
"lint:fix": "yarn lint:check --fix", "lint:fix": "yarn lint:check --fix",
......
#!/bin/bash
export SEQUENCER_ADDRESS=0xabba
export SEQUENCER_WARNING_THRESHOLD=1000
export SEQUENCER_DANGER_THRESHOLD=100
export PROPOSER_ADDRESS=0xacdc
export PROPOSER_WARNING_THRESHOLD=2000
export PROPOSER_DANGER_THRESHOLD=200
yarn ts-mocha src/*.spec.ts
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment