Skip to content

Commit b58d59d

Browse files
committed
fix(cli): update subgraph hash output formatting in tests
- Adjusted the expected output in bootstrap tests to reflect the updated subgraph hash format. - Ensured consistency in the test cases by using the correct subgraph hash key format. - Improved test coverage for the bootstrap command's output handling.
1 parent 52f8ebd commit b58d59d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cli/commands/bootstrap/bootstrap.output.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ describe("outputResult", () => {
353353
"utf8"
354354
);
355355
expect(JSON.parse(subgraphConfig)).toEqual({
356-
[SUBGRAPH_HASH_KEY]: SAMPLE_SUBGRAPH_HASH,
356+
[SUBGRAPH_HASH_KEY]: `kit:${SAMPLE_SUBGRAPH_HASH}`,
357357
});
358358

359359
await rm("out", { recursive: true, force: true });
@@ -527,6 +527,7 @@ describe("outputResult", () => {
527527
(entry) => entry.name === "besu-subgraph"
528528
);
529529
expect(subgraphConfig?.immutable).toBe(true);
530+
// Kubernetes configmaps store the raw IPFS hash; local file output adds the kit: prefix.
530531
expect(subgraphConfig?.data?.[SUBGRAPH_HASH_KEY]).toBe(
531532
SAMPLE_SUBGRAPH_HASH
532533
);

0 commit comments

Comments
 (0)