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

Function fakeEnv

services/notifications/src/queue-consumer.test.ts:15–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13};
14
15function fakeEnv(): Env {
16 return {
17 EXPO_ACCESS_TOKEN: {
18 get: vi.fn(async () => 'access-token'),
19 },
20 HYPERDRIVE: {
21 connectionString: 'postgres://test',
22 },
23 } as unknown as Env;
24}
25
26function fakeBatch(message: ReceiptCheckMessage): {
27 batch: MessageBatch<ReceiptCheckMessage>;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected