We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3acee7c commit d489e65Copy full SHA for d489e65
1 file changed
lambdas/authorizer/src/__tests__/index.test.ts
@@ -18,12 +18,11 @@ jest.mock("aws-embedded-metrics", () => {
18
19
return {
20
metricScope: jest.fn(
21
- (handler: (metrics: typeof metricsMock) => unknown) => {
+ (handler: (metrics: typeof metricsMock) => unknown): void => {
22
const wrapped = handler(metricsMock);
23
if (typeof wrapped === "function") {
24
- return wrapped();
+ wrapped();
25
}
26
- return undefined;
27
},
28
),
29
__metricsMock: metricsMock,
0 commit comments