diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c644924a4..e630096397 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -160,6 +160,8 @@ jobs: cargo test --package forge --features scarb_2_8_3 e2e::features - run: | cargo test --package scarb-api --features scarb_2_8_3 get_starknet_artifacts_path + - run: | + cargo test --package scarb-api --features scarb_2_8_3 test_load_contracts_artifacts test-forge-runner: name: Test Forge Runner diff --git a/crates/scarb-api/src/artifacts.rs b/crates/scarb-api/src/artifacts.rs index 75632b56d2..8b3e2c74b7 100644 --- a/crates/scarb-api/src/artifacts.rs +++ b/crates/scarb-api/src/artifacts.rs @@ -34,7 +34,6 @@ impl StarknetArtifactsFiles { } } - // TODO(#2625) add unit tests pub(crate) fn load_contracts_artifacts( self, ) -> Result> { @@ -61,7 +60,6 @@ impl StarknetArtifactsFiles { } } -// TODO(#2625) add unit tests fn unique_artifacts( artifact_representations: Vec, current_artifacts: &HashMap, @@ -92,3 +90,116 @@ fn compile_artifact_at_path(path: &Utf8Path) -> Result