-
Notifications
You must be signed in to change notification settings - Fork 36
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
Showing
7 changed files
with
74 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# TODO decide how it will fail - address already in use or invalid cli arg | ||
|
||
# TODO change to use ../ | ||
source ~/shardlabs/starknet-hardhat-plugin/scripts/check-devnet-is-not-running.sh | ||
|
||
check_devnet_is_not_running | ||
|
||
# run devnet which will cause integrated-devnet to fail | ||
starknet-devnet --host 127.0.0.1 --port 5050 & | ||
|
||
npx hardhat starknet-compile contracts/contract.cairo | ||
|
||
npx hardhat test --no-compile test/integrated-devnet.test.ts | | ||
~/shardlabs/starknet-hardhat-plugin/scripts/assert_contains.py "Address already in use" |
13 changes: 13 additions & 0 deletions
13
test/integrated-devnet-tests/with-docker-fail/hardhat.config.ts
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,13 @@ | ||
import "../dist/src/index.js"; | ||
|
||
module.exports = { | ||
starknet: { | ||
network: process.env.NETWORK | ||
}, | ||
networks: { | ||
integratedDevnet: { | ||
dockerizedVersion: process.env.STARKNET_DEVNET, | ||
url: "http://127.0.0.1:5050" | ||
} | ||
} | ||
}; |
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,4 @@ | ||
{ | ||
"$schema": "../../network.schema", | ||
"integrated-devnet": true | ||
} |
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,11 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
source ../scripts/check-devnet-is-not-running.sh | ||
|
||
check_devnet_is_not_running | ||
starknet-devnet --host 127.0.0.1 --port 5050 & | ||
|
||
npx hardhat starknet-compile contracts/contract.cairo | ||
npx hardhat test --no-compile test/integrated-devnet.test.ts | | ||
../scripts/assert_contains.py "address already in use" |
13 changes: 13 additions & 0 deletions
13
test/integrated-devnet-tests/with-venv-fail/hardhat.config.ts
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,13 @@ | ||
import "../dist/src/index.js"; | ||
|
||
module.exports = { | ||
starknet: { | ||
network: process.env.NETWORK | ||
}, | ||
networks: { | ||
integratedDevnet: { | ||
venv: process.env.STARKNET_DEVNET_PATH, | ||
url: "http://127.0.0.1:5050" | ||
} | ||
} | ||
}; |
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,4 @@ | ||
{ | ||
"$schema": "../../network.schema", | ||
"integrated-devnet": true | ||
} |