-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d0909b2
commit a11ec59
Showing
10 changed files
with
721 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
.DS_Store | ||
dist/ | ||
node_modules/ | ||
yarn-error.log | ||
yarn-error.log | ||
|
||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
ANVIL_PORT=8545 | ||
|
||
# Launch anvil in the bg | ||
yarn anvil:kill | ||
yarn anvil --chain-id 1 & | ||
echo "Launching Anvil..." | ||
|
||
# Give it some time to boot | ||
interval=5 | ||
until nc -z localhost $ANVIL_PORT; do | ||
sleep $interval | ||
interval=$((interval * 2)) | ||
done | ||
echo "Anvil Launched..." | ||
|
||
# Run the tests and store the result | ||
echo "Running Tests..." | ||
yarn vitest --reporter=verbose --bail 1 | ||
|
||
# Store exit code | ||
TEST_RESULT=$? | ||
|
||
# kill anvil | ||
echo "Cleaning Up..." | ||
yarn anvil:kill | ||
|
||
# return the result of the tests | ||
exit "$TEST_RESULT" |
Oops, something went wrong.