From 86e6d762d2cbbffccf7107ae851b2b237199b29c Mon Sep 17 00:00:00 2001 From: Sepanyol Date: Tue, 6 May 2025 11:26:18 +0200 Subject: [PATCH] chore: update urls to documentation --- .changeset/itchy-rockets-add.md | 5 +++++ package.json | 1 + packages/cli/README.md | 2 +- .../src/scaffold/__snapshots__/ethereum.test.ts.snap | 12 ++++++------ packages/cli/src/scaffold/tests.ts | 6 +++--- 5 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 .changeset/itchy-rockets-add.md diff --git a/.changeset/itchy-rockets-add.md b/.changeset/itchy-rockets-add.md new file mode 100644 index 000000000..180ea0b38 --- /dev/null +++ b/.changeset/itchy-rockets-add.md @@ -0,0 +1,5 @@ +--- +'@graphprotocol/graph-cli': minor +--- + +chore: update urls to documentation diff --git a/package.json b/package.json index 6ce9f922c..345e14114 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "lint:prettier:fix": "prettier . --write", "lint:renovate": "npx --yes --package renovate -- renovate-config-validator", "release": "pnpm build && changeset publish", + "test": "pnpm --filter @graphprotocol/graph-* test", "test:cli": "pnpm --filter @graphprotocol/graph-cli test", "test:ts": "pnpm --filter @graphprotocol/graph-ts test", "type-check": "pnpm --filter=@graphprotocol/graph-cli type-check" diff --git a/packages/cli/README.md b/packages/cli/README.md index 5ecdf7380..31ab98ca9 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -87,7 +87,7 @@ decentralized network directly. If you are ready to dive into the details of building a subgraph from scratch, there is a [detailed walkthrough](https://thegraph.com/docs/en/developing/creating-a-subgraph/) for that as well, along with API documentation for the -[AssemblyScript API](https://thegraph.com/docs/en/developer/assemblyscript-api/). +[AssemblyScript API](https://thegraph.com/docs/en/subgraphs/developing/creating/graph-ts/api/). ## Releases diff --git a/packages/cli/src/scaffold/__snapshots__/ethereum.test.ts.snap b/packages/cli/src/scaffold/__snapshots__/ethereum.test.ts.snap index 32e19c553..30ccd7bae 100644 --- a/packages/cli/src/scaffold/__snapshots__/ethereum.test.ts.snap +++ b/packages/cli/src/scaffold/__snapshots__/ethereum.test.ts.snap @@ -291,7 +291,7 @@ import { handleExampleEvent } from "../src/contract" import { createExampleEventEvent } from "./contract-utils" // Tests structure (matchstick-as >=0.5.0) -// https://thegraph.com/docs/en/developer/matchstick/#tests-structure-0-5-0 +// https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#tests-structure describe("Describe entity assertions", () => { beforeAll(() => { @@ -310,7 +310,7 @@ describe("Describe entity assertions", () => { }) // For more test scenarios, see: - // https://thegraph.com/docs/en/developer/matchstick/#write-a-unit-test + // https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#write-a-unit-test test("ExampleEvent created and stored", () => { assert.entityCount("ExampleEvent", 1) @@ -348,7 +348,7 @@ describe("Describe entity assertions", () => { ) // More assert options: - // https://thegraph.com/docs/en/developer/matchstick/#asserts + // https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#asserts }) }) " @@ -458,7 +458,7 @@ import { handleExampleEvent } from "../src/contract" import { createExampleEventEvent } from "./contract-utils" // Tests structure (matchstick-as >=0.5.0) -// https://thegraph.com/docs/en/developer/matchstick/#tests-structure-0-5-0 +// https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#tests-structure describe("Describe entity assertions", () => { beforeAll(() => { @@ -477,7 +477,7 @@ describe("Describe entity assertions", () => { }) // For more test scenarios, see: - // https://thegraph.com/docs/en/developer/matchstick/#write-a-unit-test + // https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#write-a-unit-test test("ExampleEvent created and stored", () => { assert.entityCount("ExampleEvent", 1) @@ -515,7 +515,7 @@ describe("Describe entity assertions", () => { ) // More assert options: - // https://thegraph.com/docs/en/developer/matchstick/#asserts + // https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#asserts }) }) " diff --git a/packages/cli/src/scaffold/tests.ts b/packages/cli/src/scaffold/tests.ts index 2434dab38..eb5497ad1 100644 --- a/packages/cli/src/scaffold/tests.ts +++ b/packages/cli/src/scaffold/tests.ts @@ -150,7 +150,7 @@ const generateExampleTest = ( // Tests structure (matchstick-as >=0.5.0) - // https://thegraph.com/docs/en/developer/matchstick/#tests-structure-0-5-0 + // https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#tests-structure describe("Describe entity assertions", () => { beforeAll(() => { @@ -166,7 +166,7 @@ const generateExampleTest = ( }) // For more test scenarios, see: - // https://thegraph.com/docs/en/developer/matchstick/#write-a-unit-test + // https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#write-a-unit-test test("${entity} created and stored", () => { assert.entityCount('${entity}', 1) @@ -175,7 +175,7 @@ const generateExampleTest = ( ${generateFieldsAssertions(entity, eventInputs, indexEvents)} // More assert options: - // https://thegraph.com/docs/en/developer/matchstick/#asserts + // https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#asserts }) }) `;