MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / flushAfterCallbacks

Function flushAfterCallbacks

apps/web/src/app/api/exa/[...path]/route.test.ts:26–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24let afterCallbacks: (() => Promise<void>)[] = [];
25
26jest.mock('next/server', () => {
27 return {
28 ...(jest.requireActual('next/server') as Record<string, unknown>),
29 after: (fn: () => Promise<void>) => {
30 afterCallbacks.push(fn);
31 },
32 };
33});
34

Callers 1

route.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected