MCPcopy Create free account
hub / github.com/firebase/firebase-functions-test / mockRequest

Function mockRequest

spec/providers/https.spec.ts:60–64  ·  view source on GitHub ↗
(sessionData)

Source from the content-addressed store, hash-verified

58
59 it('should accept raw request', async () => {
60 const mockRequest: any = (sessionData) => {
61 return {
62 session: { data: sessionData },
63 };
64 };
65 mockRequest.rawBody = Buffer.from('foobar');
66 const test = fft();
67 const options = {

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…