MCPcopy
hub / github.com/PostHog/posthog / MockPromise

Interface MockPromise

plugin-server/tests/helpers/promises.ts:1–5  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1interface MockPromise<T> {
2 promise: Promise<T>
3 resolve: (value?: any) => void
4 reject: (error: any) => void
5}
6
7export function createPromise<T = void>(): MockPromise<T> {
8 const result: Partial<MockPromise<T>> = {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…