Skip to content

Commit

Permalink
contracts-bedrock: better test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tynes committed Nov 27, 2023
1 parent 8a5bf0b commit 825effa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contracts-bedrock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"build": "forge build",
"build:go-ffi": "(cd scripts/go-ffi && go build)",
"autogen:invariant-docs": "npx tsx scripts/invariant-doc-gen.ts",
"test": "pnpm build:go-ffi && forge test",
"test": "pnpm build:go-ffi && ./scripts/generate-l2-genesis.sh && forge test",
"coverage": "pnpm build:go-ffi && forge coverage",
"coverage:lcov": "pnpm build:go-ffi && forge coverage --report lcov",
"deploy": "./scripts/deploy.sh",
Expand Down
1 change: 1 addition & 0 deletions packages/contracts-bedrock/scripts/generate-l2-genesis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ fi

if [ ! -d "$TESTDATA_DIR" ]; then
mkdir -p "$TESTDATA_DIR"
echo "Generating L2 genesis"

go run $OP_NODE genesis l2 \
--deploy-config "$CONTRACTS_DIR/deploy-config/hardhat.json" \
Expand Down

0 comments on commit 825effa

Please sign in to comment.