Skip to content

chore: update urls to documentation #2018

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/itchy-rockets-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphprotocol/graph-cli': minor
---

chore: update urls to documentation
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 6 additions & 6 deletions packages/cli/src/scaffold/__snapshots__/ethereum.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand All @@ -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)
Expand Down Expand Up @@ -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
})
})
"
Expand Down Expand Up @@ -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(() => {
Expand All @@ -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)
Expand Down Expand Up @@ -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
})
})
"
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/src/scaffold/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand All @@ -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)
Expand All @@ -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
})
})
`;
Expand Down