We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ffa71e commit 98b702fCopy full SHA for 98b702f
packages/tracing/tests/unit/Tracer.test.ts
@@ -1,8 +1,11 @@
1
-import { LambdaInterface } from '../../examples/utils/lambda';
2
import { Tracer } from '../../src';
3
-import { Callback, Context } from 'aws-lambda/handler';
+import { Callback, Context, Handler } from 'aws-lambda/handler';
4
import { Segment, setContextMissingStrategy, Subsegment } from 'aws-xray-sdk-core';
5
+interface LambdaInterface {
6
+ handler: Handler
7
+}
8
+
9
jest.spyOn(console, 'debug').mockImplementation(() => null);
10
jest.spyOn(console, 'warn').mockImplementation(() => null);
11
jest.spyOn(console, 'error').mockImplementation(() => null);
0 commit comments