We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8d54ab commit 14ab3ecCopy full SHA for 14ab3ec
lambdas/example-lambda/src/__tests__/index.test.ts
@@ -1,9 +1,10 @@
1
import { handler } from '../index';
2
+import { mockDeep } from 'jest-mock-extended';
3
4
describe('event-logging Lambda', () => {
5
it('logs the input event and returns 200', async () => {
6
const event = { foo: 'bar' };
- const context = {} as any;
7
+ const context = mockDeep<any>();
8
const callback = jest.fn();
9
const result = await handler(event, context, callback);
10
0 commit comments