Skip to content

Commit 14ab3ec

Browse files
CCM-10591: Lambda Boilerplate
1 parent b8d54ab commit 14ab3ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lambdas/example-lambda/src/__tests__/index.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { handler } from '../index';
2+
import { mockDeep } from 'jest-mock-extended';
23

34
describe('event-logging Lambda', () => {
45
it('logs the input event and returns 200', async () => {
56
const event = { foo: 'bar' };
6-
const context = {} as any;
7+
const context = mockDeep<any>();
78
const callback = jest.fn();
89
const result = await handler(event, context, callback);
910

0 commit comments

Comments
 (0)