Skip to content

Commit db72b2d

Browse files
authored
chore: update urls to documentation (#2018)
Signed-off-by: YaroShkvorets <[email protected]>
1 parent f70885e commit db72b2d

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

.changeset/itchy-rockets-add.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-cli': minor
3+
---
4+
5+
chore: update urls to documentation

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"lint:prettier:fix": "prettier . --write",
2626
"lint:renovate": "npx --yes --package renovate -- renovate-config-validator",
2727
"release": "pnpm build && changeset publish",
28+
"test": "pnpm --filter @graphprotocol/graph-* test",
2829
"test:cli": "pnpm --filter @graphprotocol/graph-cli test",
2930
"test:ts": "pnpm --filter @graphprotocol/graph-ts test",
3031
"type-check": "pnpm --filter=@graphprotocol/graph-cli type-check"

packages/cli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ decentralized network directly.
8787
If you are ready to dive into the details of building a subgraph from scratch, there is a
8888
[detailed walkthrough](https://thegraph.com/docs/en/developing/creating-a-subgraph/) for that as
8989
well, along with API documentation for the
90-
[AssemblyScript API](https://thegraph.com/docs/en/developer/assemblyscript-api/).
90+
[AssemblyScript API](https://thegraph.com/docs/en/subgraphs/developing/creating/graph-ts/api/).
9191

9292
## Releases
9393

packages/cli/src/scaffold/__snapshots__/ethereum.test.ts.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ import { handleExampleEvent } from "../src/contract"
291291
import { createExampleEventEvent } from "./contract-utils"
292292
293293
// Tests structure (matchstick-as >=0.5.0)
294-
// https://thegraph.com/docs/en/developer/matchstick/#tests-structure-0-5-0
294+
// https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#tests-structure
295295
296296
describe("Describe entity assertions", () => {
297297
beforeAll(() => {
@@ -310,7 +310,7 @@ describe("Describe entity assertions", () => {
310310
})
311311
312312
// For more test scenarios, see:
313-
// https://thegraph.com/docs/en/developer/matchstick/#write-a-unit-test
313+
// https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#write-a-unit-test
314314
315315
test("ExampleEvent created and stored", () => {
316316
assert.entityCount("ExampleEvent", 1)
@@ -348,7 +348,7 @@ describe("Describe entity assertions", () => {
348348
)
349349
350350
// More assert options:
351-
// https://thegraph.com/docs/en/developer/matchstick/#asserts
351+
// https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#asserts
352352
})
353353
})
354354
"
@@ -458,7 +458,7 @@ import { handleExampleEvent } from "../src/contract"
458458
import { createExampleEventEvent } from "./contract-utils"
459459
460460
// Tests structure (matchstick-as >=0.5.0)
461-
// https://thegraph.com/docs/en/developer/matchstick/#tests-structure-0-5-0
461+
// https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#tests-structure
462462
463463
describe("Describe entity assertions", () => {
464464
beforeAll(() => {
@@ -477,7 +477,7 @@ describe("Describe entity assertions", () => {
477477
})
478478
479479
// For more test scenarios, see:
480-
// https://thegraph.com/docs/en/developer/matchstick/#write-a-unit-test
480+
// https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#write-a-unit-test
481481
482482
test("ExampleEvent created and stored", () => {
483483
assert.entityCount("ExampleEvent", 1)
@@ -515,7 +515,7 @@ describe("Describe entity assertions", () => {
515515
)
516516
517517
// More assert options:
518-
// https://thegraph.com/docs/en/developer/matchstick/#asserts
518+
// https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#asserts
519519
})
520520
})
521521
"

packages/cli/src/scaffold/tests.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const generateExampleTest = (
150150
151151
152152
// Tests structure (matchstick-as >=0.5.0)
153-
// https://thegraph.com/docs/en/developer/matchstick/#tests-structure-0-5-0
153+
// https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#tests-structure
154154
155155
describe("Describe entity assertions", () => {
156156
beforeAll(() => {
@@ -166,7 +166,7 @@ const generateExampleTest = (
166166
})
167167
168168
// For more test scenarios, see:
169-
// https://thegraph.com/docs/en/developer/matchstick/#write-a-unit-test
169+
// https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#write-a-unit-test
170170
171171
test("${entity} created and stored", () => {
172172
assert.entityCount('${entity}', 1)
@@ -175,7 +175,7 @@ const generateExampleTest = (
175175
${generateFieldsAssertions(entity, eventInputs, indexEvents)}
176176
177177
// More assert options:
178-
// https://thegraph.com/docs/en/developer/matchstick/#asserts
178+
// https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#asserts
179179
})
180180
})
181181
`;

0 commit comments

Comments
 (0)