Skip to content

Commit

Permalink
Use local envio version for integration test cases (#238)
Browse files Browse the repository at this point in the history
* Use local envio version for integration test cases

* Update envio cmd to use local version

* Fix local envio paths
  • Loading branch information
DZakh authored Oct 1, 2024
1 parent 073ca00 commit 197a5af
Show file tree
Hide file tree
Showing 8 changed files with 1,673 additions and 1,333 deletions.
2 changes: 1 addition & 1 deletion codegenerator/integration_tests/tests/runSingle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ root_dir=$(pwd)

# By default this will use envio from pnpm, but you can override this with an the ENVIO_CMD env var.
# If you know that the version of envio inside the projct is correct, then you can use `ENVIO="pnpm envio".
envio_cmd=${ENVIO_CMD:-"cargo run --manifest-path $(dirname $(pwd))/cli/Cargo.toml --"}
envio_cmd=${ENVIO_CMD:-"pnpm envio"}

# change to the directory of the template
cd ./integration_test_output/${TEMPLATE}/${LANGUAGE}/
Expand Down
2 changes: 1 addition & 1 deletion codegenerator/integration_tests/tests/testIndexerExits.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ root_dir=$(pwd)

# By default this will use envio from pnpm, but you can override this with an the ENVIO_CMD env var.
# If you know that the version of envio inside the projct is correct, then you can use `ENVIO="pnpm envio".
envio_cmd=${ENVIO_CMD:-"cargo run --manifest-path $(dirname $(pwd))/cli/Cargo.toml --"}
envio_cmd=${ENVIO_CMD:-"pnpm envio"}

# change to the directory of the template
cd ./integration_test_output/${TEMPLATE}/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
},
"dependencies": {
"chai": "4.3.10",
"envio": "0.0.38",
"ethers": "6.8.0"
"envio": "../../../../cli/npm/envio"
},
"optionalDependencies": {
"generated": "./generated"
Expand Down
Loading

0 comments on commit 197a5af

Please sign in to comment.