Skip to content

Commit eeee3ad

Browse files
committed
failing mcp tests
1 parent c57a674 commit eeee3ad

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/b2c-dx-mcp/test/server.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ class MockTelemetry {
3030
this.events.push({name, attributes});
3131
}
3232

33+
async sendEventAndFlush(name: string, attributes: Record<string, unknown> = {}): Promise<void> {
34+
this.sendEvent(name, attributes);
35+
await this.flush();
36+
}
37+
3338
async start(): Promise<void> {
3439
this.started = true;
3540
}

0 commit comments

Comments
 (0)