Skip to content

Commit b807aab

Browse files
committed
tests: Add integration tests for log querying
Adds comprehensive integration test for _logs query: Test implementation: - Deploys logs-query subgraph and waits for sync - Triggers contract events to generate logs - Queries _logs field with various filters - Verifies log entries are returned correctly - Tests filtering by level and text search
1 parent f47e987 commit b807aab

13 files changed

Lines changed: 1797 additions & 729 deletions

File tree

CLAUDE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ TEST_CASE=grafted just test-integration
9898

9999
# (Optional) Use graph-cli instead of gnd for compatibility testing
100100
GRAPH_CLI=node_modules/.bin/graph just test-integration
101+
102+
# Override ports if using different service ports (e.g., for local development)
103+
POSTGRES_TEST_PORT=5432 ETHEREUM_TEST_PORT=8545 IPFS_TEST_PORT=5001 just test-integration
101104
```
102105

103106
**⚠️ Test Verification Requirements:**

pnpm-lock.yaml

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ async fn introspection_query(schema: Arc<ApiSchema>, query: &str) -> QueryResult
125125
max_first: u32::MAX,
126126
max_skip: u32::MAX,
127127
trace: false,
128+
log_store: Arc::new(graph::components::log_store::NoOpLogStore),
128129
};
129130

130131
let result =

0 commit comments

Comments
 (0)