Skip to content

Commit 9b7d648

Browse files
committed
refactor: simplify README instructions for local development and testing
1 parent fa14ee1 commit 9b7d648

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

README.md

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Check how to export handlers with [Matchstick - Test Coverage documentation](htt
1313
> [!NOTE]
1414
> Since Matchstick code coverage is in very early stages, Matchstick cannot check for branch coverage, but rely on the assertion that a given handler has been called.
1515
16-
1716
## local dev
1817

1918
run local services:
@@ -34,31 +33,24 @@ npm ci
3433
generate code
3534

3635
```sh
37-
npx graph codegen subgraph.test.yaml
38-
npx graph build subgraph.test.yaml
36+
npm run codegen
3937
```
4038

4139
deploy the subgraph on local node
4240

4341
```sh
44-
# create once
45-
npx graph create test/poco --node http://127.0.0.1:8020
46-
npx graph deploy test/poco subgraph.test.yaml --node http://127.0.0.1:8020 --ipfs http://127.0.01:5001 --version-label dev
42+
npm run start-test-stack
4743
```
4844

49-
test/poco subgraph graphql API enpoints:
50-
51-
- queries: <http://127.0.0.1:8000/subgraphs/name/test/poco>
52-
- subscriptions: <ws://127.0.0.1:8001/subgraphs/name/test/poco>
53-
54-
debugging:
45+
run integration tests
5546

56-
- monitoring: <http://127.0.0.1:8030/>
57-
- prometeus: <http://127.0.0.1:8040/>
58-
- graphnode logs: `docker logs -f test_graphnode_1`
47+
```sh
48+
npm run itest
49+
```
5950

60-
_NB_: other blockchains setups are availables in [docker/README.md](./docker/README.md).
51+
test/poco subgraph graphql API enpoints:
6152

53+
- queries: <http://127.0.0.1:8000/subgraphs/name/test/poco>
6254

6355
---
6456

@@ -142,6 +134,7 @@ To add support for a new network, update the `networks.json` file with the netwo
142134
```
143135

144136
Also, update the Jenkins pipeline choices to include the new network:
137+
145138
```groovy
146139
choice(
147140
name: 'networkName',

0 commit comments

Comments
 (0)