Skip to content

Commit f2654c3

Browse files
committed
Update init snapshot
1 parent fd1fcd9 commit f2654c3

File tree

2 files changed

+44
-44
lines changed

2 files changed

+44
-44
lines changed

packages/cli/tests/cli/__snapshots__/init.test.ts.snap

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ exports[`Init > Ethereum > From contract 1`] = `
1313
✔ Create subgraph scaffold
1414
- Initialize networks config
1515
✔ Initialize networks config
16-
- Install dependencies with yarn
17-
✔ Install dependencies with yarn
18-
- Generate ABI and schema types with yarn codegen
19-
✔ Generate ABI and schema types with yarn codegen
16+
- Install dependencies with npm install
17+
✔ Install dependencies with npm install
18+
- Generate ABI and schema types with npm run codegen
19+
✔ Generate ABI and schema types with npm run codegen
2020
"
2121
`;
2222

@@ -32,7 +32,7 @@ Next steps:
3232
3333
2. Type \`cd from-contract\` to enter the subgraph.
3434
35-
3. Run \`yarn deploy\` to deploy the subgraph.
35+
3. Run \`npm run deploy\` to deploy the subgraph.
3636
3737
Make sure to visit the documentation on https://thegraph.com/docs/ for further information.
3838
"
@@ -49,10 +49,10 @@ exports[`Init > Ethereum > From contract with abi 1`] = `
4949
✔ Create subgraph scaffold
5050
- Initialize networks config
5151
✔ Initialize networks config
52-
- Install dependencies with yarn
53-
✔ Install dependencies with yarn
54-
- Generate ABI and schema types with yarn codegen
55-
✔ Generate ABI and schema types with yarn codegen
52+
- Install dependencies with npm install
53+
✔ Install dependencies with npm install
54+
- Generate ABI and schema types with npm run codegen
55+
✔ Generate ABI and schema types with npm run codegen
5656
"
5757
`;
5858

@@ -68,7 +68,7 @@ Next steps:
6868
6969
2. Type \`cd from-contract-with-abi\` to enter the subgraph.
7070
71-
3. Run \`yarn deploy\` to deploy the subgraph.
71+
3. Run \`npm run deploy\` to deploy the subgraph.
7272
7373
Make sure to visit the documentation on https://thegraph.com/docs/ for further information.
7474
"
@@ -85,10 +85,10 @@ exports[`Init > Ethereum > From contract with abi and structs 1`] = `
8585
✔ Create subgraph scaffold
8686
- Initialize networks config
8787
✔ Initialize networks config
88-
- Install dependencies with yarn
89-
✔ Install dependencies with yarn
90-
- Generate ABI and schema types with yarn codegen
91-
✔ Generate ABI and schema types with yarn codegen
88+
- Install dependencies with npm install
89+
✔ Install dependencies with npm install
90+
- Generate ABI and schema types with npm run codegen
91+
✔ Generate ABI and schema types with npm run codegen
9292
"
9393
`;
9494

@@ -104,7 +104,7 @@ Next steps:
104104
105105
2. Type \`cd from-contract-with-abi-and-structs\` to enter the subgraph.
106106
107-
3. Run \`yarn deploy\` to deploy the subgraph.
107+
3. Run \`npm run deploy\` to deploy the subgraph.
108108
109109
Make sure to visit the documentation on https://thegraph.com/docs/ for further information.
110110
"
@@ -121,10 +121,10 @@ exports[`Init > Ethereum > From contract with index events and abi with ID in ev
121121
✔ Create subgraph scaffold
122122
- Initialize networks config
123123
✔ Initialize networks config
124-
- Install dependencies with yarn
125-
✔ Install dependencies with yarn
126-
- Generate ABI and schema types with yarn codegen
127-
✔ Generate ABI and schema types with yarn codegen
124+
- Install dependencies with npm install
125+
✔ Install dependencies with npm install
126+
- Generate ABI and schema types with npm run codegen
127+
✔ Generate ABI and schema types with npm run codegen
128128
"
129129
`;
130130

@@ -140,7 +140,7 @@ Next steps:
140140
141141
2. Type \`cd duplicate-ids\` to enter the subgraph.
142142
143-
3. Run \`yarn deploy\` to deploy the subgraph.
143+
3. Run \`npm run deploy\` to deploy the subgraph.
144144
145145
Make sure to visit the documentation on https://thegraph.com/docs/ for further information.
146146
"
@@ -157,10 +157,10 @@ exports[`Init > Ethereum > From contract with list items in abi 1`] = `
157157
✔ Create subgraph scaffold
158158
- Initialize networks config
159159
✔ Initialize networks config
160-
- Install dependencies with yarn
161-
✔ Install dependencies with yarn
162-
- Generate ABI and schema types with yarn codegen
163-
✔ Generate ABI and schema types with yarn codegen
160+
- Install dependencies with npm install
161+
✔ Install dependencies with npm install
162+
- Generate ABI and schema types with npm run codegen
163+
✔ Generate ABI and schema types with npm run codegen
164164
"
165165
`;
166166

@@ -176,7 +176,7 @@ Next steps:
176176
177177
2. Type \`cd from-contract-with-lists-in-abi\` to enter the subgraph.
178178
179-
3. Run \`yarn deploy\` to deploy the subgraph.
179+
3. Run \`npm run deploy\` to deploy the subgraph.
180180
181181
Make sure to visit the documentation on https://thegraph.com/docs/ for further information.
182182
"
@@ -193,10 +193,10 @@ exports[`Init > Ethereum > From contract with overloaded elements 1`] = `
193193
✔ Create subgraph scaffold
194194
- Initialize networks config
195195
✔ Initialize networks config
196-
- Install dependencies with yarn
197-
✔ Install dependencies with yarn
198-
- Generate ABI and schema types with yarn codegen
199-
✔ Generate ABI and schema types with yarn codegen
196+
- Install dependencies with npm install
197+
✔ Install dependencies with npm install
198+
- Generate ABI and schema types with npm run codegen
199+
✔ Generate ABI and schema types with npm run codegen
200200
"
201201
`;
202202

@@ -212,7 +212,7 @@ Next steps:
212212
213213
2. Type \`cd from-contract-with-overloaded-elements\` to enter the subgraph.
214214
215-
3. Run \`yarn deploy\` to deploy the subgraph.
215+
3. Run \`npm run deploy\` to deploy the subgraph.
216216
217217
Make sure to visit the documentation on https://thegraph.com/docs/ for further information.
218218
"
@@ -227,10 +227,10 @@ exports[`Init > Ethereum > From example 1`] = `
227227
✔ Initialize networks config
228228
- Update subgraph name and commands in package.json
229229
✔ Update subgraph name and commands in package.json
230-
- Install dependencies with yarn
231-
✔ Install dependencies with yarn
232-
- Generate ABI and schema types with yarn codegen
233-
✔ Generate ABI and schema types with yarn codegen
230+
- Install dependencies with npm install
231+
✔ Install dependencies with npm install
232+
- Generate ABI and schema types with npm run codegen
233+
✔ Generate ABI and schema types with npm run codegen
234234
"
235235
`;
236236

@@ -246,14 +246,14 @@ Next steps:
246246
247247
2. Type \`cd from-example\` to enter the subgraph.
248248
249-
3. Run \`yarn deploy\` to deploy the subgraph.
249+
3. Run \`npm run deploy\` to deploy the subgraph.
250250
251251
Make sure to visit the documentation on https://thegraph.com/docs/ for further information.
252252
"
253253
`;
254254

255255
exports[`Init > NEAR > From contract 1`] = `
256-
" › Error: Nonexistent flag: --product
256+
" › Error: Nonexistent flag: --studio
257257
› See more help with --help
258258
"
259259
`;

packages/cli/tests/cli/init.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe.sequential(
2727
path.join('init', 'ethereum', 'from-example'),
2828
{
2929
exitCode: 0,
30-
timeout: 100_000,
30+
timeout: 1_000_000,
3131
cwd: ethereumBaseDir,
3232
deleteDir: true,
3333
},
@@ -50,7 +50,7 @@ describe.sequential(
5050
path.join('init', 'ethereum', 'from-contract'),
5151
{
5252
exitCode: 0,
53-
timeout: 100_000,
53+
timeout: 1_000_000,
5454
cwd: ethereumBaseDir,
5555
deleteDir: true,
5656
},
@@ -75,7 +75,7 @@ describe.sequential(
7575
path.join('init', 'ethereum', 'from-contract-with-abi'),
7676
{
7777
exitCode: 0,
78-
timeout: 100_000,
78+
timeout: 1_000_000,
7979
cwd: ethereumBaseDir,
8080
deleteDir: true,
8181
},
@@ -100,7 +100,7 @@ describe.sequential(
100100
path.join('init', 'ethereum', 'from-contract-with-abi-and-structs'),
101101
{
102102
exitCode: 0,
103-
timeout: 100_000,
103+
timeout: 1_000_000,
104104
cwd: ethereumBaseDir,
105105
deleteDir: true,
106106
},
@@ -125,7 +125,7 @@ describe.sequential(
125125
path.join('init', 'ethereum', 'from-contract-with-lists-in-abi'),
126126
{
127127
exitCode: 0,
128-
timeout: 100_000,
128+
timeout: 1_000_000,
129129
cwd: ethereumBaseDir,
130130
deleteDir: true,
131131
},
@@ -150,7 +150,7 @@ describe.sequential(
150150
path.join('init', 'ethereum', 'from-contract-with-overloaded-elements'),
151151
{
152152
exitCode: 0,
153-
timeout: 100_000,
153+
timeout: 1_000_000,
154154
cwd: ethereumBaseDir,
155155
deleteDir: true,
156156
},
@@ -176,7 +176,7 @@ describe.sequential(
176176
path.join('init', 'ethereum', 'duplicate-ids'),
177177
{
178178
exitCode: 0,
179-
timeout: 100_000,
179+
timeout: 1_000_000,
180180
cwd: ethereumBaseDir,
181181
deleteDir: true,
182182
runBuild: true,
@@ -205,7 +205,7 @@ describe.sequential(
205205
path.join('init', 'near', 'from-contract'),
206206
{
207207
exitCode: 0,
208-
timeout: 100_000,
208+
timeout: 1_000_000,
209209
cwd: nearBaseDir,
210210
deleteDir: true,
211211
},

0 commit comments

Comments
 (0)