Skip to content

Commit e1e943d

Browse files
committed
chain, store: Move ethereum tests to test-store
1 parent bd4f6fb commit e1e943d

File tree

8 files changed

+11
-3
lines changed

8 files changed

+11
-3
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chain/ethereum/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ graph-runtime-wasm = { path = "../../runtime/wasm" }
2525
graph-runtime-derive = { path = "../../runtime/derive" }
2626

2727
[dev-dependencies]
28-
test-store = { path = "../../store/test-store" }
2928
base64 = "0.20.0"
3029
uuid = { version = "1.3.0", features = ["v4"] }
3130

chain/ethereum/tests/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Put integration tests for this crate into
2+
`store/test-store/tests/chain/ethereum`. This avoids cyclic dev-dependencies
3+
which make rust-analyzer nearly unusable. Once [this
4+
issue](https://github.com/rust-lang/rust-analyzer/issues/14167) has been
5+
fixed, we can move tests back here

store/test-store/tests/chain.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pub mod chain {
2+
pub mod ethereum {
3+
pub mod manifest;
4+
}
5+
}

chain/ethereum/tests/manifest.rs renamed to store/test-store/tests/chain/ethereum/manifest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ use graph::{
1818
data::subgraph::SubgraphFeature,
1919
};
2020

21+
use graph::semver::Version;
2122
use graph_chain_ethereum::{Chain, NodeCapabilities};
22-
use semver::Version;
2323
use test_store::LOGGER;
2424

2525
const GQL_SCHEMA: &str = "type Thing @entity { id: ID! }";

0 commit comments

Comments
 (0)