File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { logger } from "tests/helpers/pino-logger" ;
12import {
23 checkSupplierExists ,
34 createSupplierEntry ,
67import { SUPPLIERID } from "../constants/api-constants" ;
78
89async function globalSetup ( ) {
9- console . log ( "" ) ;
10- console . log ( "*** BEGINNING GLOBAL SETUP ***" ) ;
11- console . log ( "" ) ;
10+ logger . info ( "" ) ;
11+ logger . info ( "*** BEGINNING GLOBAL SETUP ***" ) ;
12+ logger . info ( "" ) ;
1213
1314 // create test data
1415
@@ -17,19 +18,19 @@ async function globalSetup() {
1718 // check supplier exists
1819 const supplier = await checkSupplierExists ( SUPPLIERID ) ;
1920 if ( supplier ) {
20- console . log ( `Supplier with ID ${ SUPPLIERID } already exists.` ) ;
21- console . log ( "" ) ;
22- console . log ( "*** GLOBAL SETUP COMPLETE ***" ) ;
23- console . log ( "" ) ;
21+ logger . info ( `Supplier with ID ${ SUPPLIERID } already exists.` ) ;
22+ logger . info ( "" ) ;
23+ logger . info ( "*** GLOBAL SETUP COMPLETE ***" ) ;
24+ logger . info ( "" ) ;
2425 return ;
2526 }
2627
27- console . log ( `Creating supplier entry with ID: ${ SUPPLIERID } ` ) ;
28+ logger . info ( `Creating supplier entry with ID: ${ SUPPLIERID } ` ) ;
2829 await createSupplierEntry ( SUPPLIERID ) ;
2930
30- console . log ( "" ) ;
31- console . log ( "*** GLOBAL SETUP COMPLETE ***" ) ;
32- console . log ( "" ) ;
31+ logger . info ( "" ) ;
32+ logger . info ( "*** GLOBAL SETUP COMPLETE ***" ) ;
33+ logger . info ( "" ) ;
3334}
3435
3536export default globalSetup ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export async function updateLambdaEnv(
2424 functionArn : string ,
2525 variables : Record < string , string > ,
2626) {
27- return await lambdaClient . send (
27+ return lambdaClient . send (
2828 new UpdateFunctionConfigurationCommand ( {
2929 FunctionName : functionArn ,
3030 Environment : { Variables : variables } ,
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import { retrieveKinesisRecordsAtTimestamp } from "tests/helpers/aws-kinesis-hel
88import { logger } from "tests/helpers/pino-logger" ;
99import { envName } from "tests/constants/api-constants" ;
1010import PREPARED_LETTER from "../../resources/prepared-letter.json" ;
11- import { assert } from "console" ;
1211
1312test . describe ( "Performance test checking how long it takes letter requests from the EventSub SNS to reach the Letters Database " , ( ) => {
1413 test ( "send 2500 letter requests" , async ( ) => {
You can’t perform that action at this time.
0 commit comments