Skip to content

Commit c74154d

Browse files
committed
graphql, store: Move graphql tests to test-store
1 parent b747488 commit c74154d

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

Cargo.lock

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

graphql/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,3 @@ async-recursion = "1.0.0"
2020

2121
[dev-dependencies]
2222
pretty_assertions = "1.3.0"
23-
test-store = { path = "../store/test-store" }
24-
graph-chain-ethereum = { path = "../chain/ethereum" }

graphql/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 `store/test-store/tests/graphql`.
2+
This avoids cyclic dev-dependencies which make rust-analyzer nearly
3+
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/graphql.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pub mod graphql {
2+
pub mod introspection;
3+
pub mod query;
4+
}

graphql/tests/introspection.rs renamed to store/test-store/tests/graphql/introspection.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#[macro_use]
2-
extern crate pretty_assertions;
3-
41
use std::sync::Arc;
52

63
use graph::data::graphql::{object, object_value, ObjectOrInterface};

graphql/tests/query.rs renamed to store/test-store/tests/graphql/query.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#[macro_use]
2-
extern crate pretty_assertions;
3-
41
use graph::components::store::EntityKey;
52
use graph::data::subgraph::schema::DeploymentCreate;
63
use graph::entity;

0 commit comments

Comments
 (0)