Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Give the whoami test's stub engine a member lookup that finds no member, now that a failed lookup no longer reads as unbound

garrytanf9b65a231b62
diff --git a/test/whoami.test.ts b/test/whoami.test.ts
index b2f30c44f7..88568c5380 100644
--- a/test/whoami.test.ts
+++ b/test/whoami.test.ts
@@ -22,7 +22,7 @@ function ctxWith(overrides: Partial<OperationContext>): OperationContext {
// Shape exposes only what whoami reads. Every required field gets a
// safe stub; the test-relevant overrides come last to win.
return {
- engine: {} as any,
+ engine: { executeRaw: async () => [] } as any,
config: {} as any,
logger: { info() {}, warn() {}, error() {} },
dryRun: false,