MCPcopy
hub / github.com/BuilderIO/agent-native / createEvent

Function createEvent

packages/core/src/progress/progress.spec.ts:51–58  ·  view source on GitHub ↗
(path: string, method = "GET")

Source from the content-addressed store, hash-verified

49import { createProgressHandler } from "./routes.js";
50
51function createEvent(path: string, method = "GET") {
52 return {
53 method,
54 url: new URL(`http://app.test${path}`),
55 context: {},
56 _status: 200,
57 };
58}
59
60function stubRun(overrides: Record<string, unknown> = {}) {
61 return {

Callers 1

progress.spec.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected