MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / setMockSession

Function setMockSession

packages/web/src/middleware/withAuth.test.ts:60–62  ·  view source on GitHub ↗
(session: Session | null)

Source from the content-addressed store, hash-verified

58
59// Test utility to set the mock session
60const setMockSession = (session: Session | null) => {
61 mocks.auth.mockResolvedValue(session);
62};
63
64const setMockHeaders = (headers: Headers) => {
65 mocks.headers.mockResolvedValue(headers);

Callers 1

withAuth.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected