MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / setMockHeaders

Function setMockHeaders

packages/web/src/middleware/withAuth.test.ts:64–66  ·  view source on GitHub ↗
(headers: Headers)

Source from the content-addressed store, hash-verified

62};
63
64const setMockHeaders = (headers: Headers) => {
65 mocks.headers.mockResolvedValue(headers);
66};
67
68// Helper to create mock session objects
69const createMockSession = (overrides: Partial<Session> = {}): Session => ({

Callers 1

withAuth.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected