Skip to content

Commit 564283c

Browse files
bloveclaude
andcommitted
fix(langgraph): satisfy no-empty-function on empty-stream test mock
The construction-only test stub used an empty async generator `(async function* () {})()` which @typescript-eslint/no-empty-function flags as an error, breaking `langgraph:lint` in the publish path (which lints fresh via --skip-nx-cache). Document the empty body so the rule passes; behaviour is unchanged (still yields no events). Surfaced by a release dry-run; not caught at merge because ci.yml lint is not a required status check. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 3ad175f commit 564283c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

libs/langgraph/src/lib/agent.fn.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,9 @@ describe('agent — LANGGRAPH_CLIENT_OPTIONS resolution (no mock transport)', ()
918918
search: vi.fn().mockResolvedValue([]),
919919
},
920920
runs: {
921-
stream: vi.fn().mockReturnValue((async function* () {})()),
921+
stream: vi.fn().mockReturnValue((async function* () {
922+
/* empty stream — construction-only tests assert wiring, not events */
923+
})()),
922924
},
923925
};
924926

0 commit comments

Comments
 (0)