@@ -4,7 +4,7 @@ import { describe, expect, it } from 'vitest';
44import { DASH0_ENDPOINT , DASH0_TOKEN , MAX_ATTEMPTS , RETRY_DELAY_MS } from "./config" ;
55import {
66 checkException , checkHttpSpan , checkLogs ,
7- checkSpanAttributesFromReport , getAttributesMap , getRequestPayload , invokeFunction , runAllTests
7+ checkSpanAttributesFromReport , getAttributesMap , getRequestPayload , invokeFunction , LogToCheck , runAllTests
88} from "./utils" ;
99
1010
@@ -65,14 +65,14 @@ const verifySuccessInvocation = async (functionName: string, invocationEnd: bool
6565 }
6666 }
6767 }
68- const logsToBeChecked = [
69- 'START RequestId: ' ,
70- "Handler invoked with event:" ,
71- "ReferenceError" ,
72- 'END RequestId: ' ,
68+ const logsToBeChecked : LogToCheck [ ] = [
69+ { message : 'START RequestId: ' } ,
70+ { message : "Handler invoked with event:" } ,
71+ { message : "ReferenceError" , severity : "error" } ,
72+ { message : 'END RequestId: ' } ,
7373 ]
7474 if ( ! invocationEnd ) {
75- logsToBeChecked . push ( 'REPORT RequestId: ' ) ;
75+ logsToBeChecked . push ( { message : 'REPORT RequestId: ' } ) ;
7676 }
7777 const reportLog = await checkLogs ( {
7878 invocationId : invocationId ! ,
0 commit comments