@@ -349,7 +349,7 @@ describe('#addCustomResourceToService()', () => {
349349 } ) ;
350350
351351 it ( 'should use defined runtime' , async ( ) => {
352- serverless . service . provider . runtime = 'nodejs22 .x' ;
352+ serverless . service . provider . runtime = 'nodejs24 .x' ;
353353 await Promise . all ( [
354354 // add the custom S3 resource
355355 addCustomResourceToService ( provider , 's3' , [
@@ -398,13 +398,13 @@ describe('#addCustomResourceToService()', () => {
398398
399399 expect (
400400 Resources . CustomDashresourceDashexistingDashs3LambdaFunction . Properties . Runtime
401- ) . to . equal ( 'nodejs22 .x' ) ;
401+ ) . to . equal ( 'nodejs24 .x' ) ;
402402 expect (
403403 Resources . CustomDashresourceDashexistingDashcupLambdaFunction . Properties . Runtime
404- ) . to . equal ( 'nodejs22 .x' ) ;
404+ ) . to . equal ( 'nodejs24 .x' ) ;
405405 expect (
406406 Resources . CustomDashresourceDasheventDashbridgeLambdaFunction . Properties . Runtime
407- ) . to . equal ( 'nodejs22 .x' ) ;
407+ ) . to . equal ( 'nodejs24 .x' ) ;
408408 } ) ;
409409} ) ;
410410
@@ -428,7 +428,7 @@ describe('test/unit/lib/plugins/aws/customResources/index.test.js', () => {
428428 expect ( properties . FunctionName . endsWith ( 'testing-custom-resource-apigw-cw-role' ) ) . to . be . true ;
429429 } ) ;
430430
431- it ( 'falls back to nodejs22 runtime for CW custom resource if provider runtime is not nodejs ' , async ( ) => {
431+ it ( 'falls back to nodejs24 runtime for CW custom resource if provider runtime is not nodejs ' , async ( ) => {
432432 const { cfTemplate } = await runServerless ( {
433433 fixture : 'api-gateway' ,
434434 command : 'package' ,
@@ -445,10 +445,10 @@ describe('test/unit/lib/plugins/aws/customResources/index.test.js', () => {
445445
446446 const properties =
447447 cfTemplate . Resources . CustomDashresourceDashapigwDashcwDashroleLambdaFunction . Properties ;
448- expect ( properties . Runtime ) . to . equal ( 'nodejs22 .x' ) ;
448+ expect ( properties . Runtime ) . to . equal ( 'nodejs24 .x' ) ;
449449 } ) ;
450450
451- it ( 'falls back to nodejs22 runtime for Cognito UP custom resource if provider runtime is not nodejs ' , async ( ) => {
451+ it ( 'falls back to nodejs24 runtime for Cognito UP custom resource if provider runtime is not nodejs ' , async ( ) => {
452452 const { cfTemplate } = await runServerless ( {
453453 fixture : 'cognito-user-pool' ,
454454 command : 'package' ,
@@ -462,10 +462,10 @@ describe('test/unit/lib/plugins/aws/customResources/index.test.js', () => {
462462
463463 const properties =
464464 cfTemplate . Resources . CustomDashresourceDashexistingDashcupLambdaFunction . Properties ;
465- expect ( properties . Runtime ) . to . equal ( 'nodejs22 .x' ) ;
465+ expect ( properties . Runtime ) . to . equal ( 'nodejs24 .x' ) ;
466466 } ) ;
467467
468- it ( 'falls back to nodejs22 runtime for Event Bridge [LEGACY] custom resource if provider runtime is not nodejs ' , async ( ) => {
468+ it ( 'falls back to nodejs24 runtime for Event Bridge [LEGACY] custom resource if provider runtime is not nodejs ' , async ( ) => {
469469 const { cfTemplate } = await runServerless ( {
470470 fixture : 'event-bridge' ,
471471 command : 'package' ,
@@ -483,10 +483,10 @@ describe('test/unit/lib/plugins/aws/customResources/index.test.js', () => {
483483
484484 const properties =
485485 cfTemplate . Resources . CustomDashresourceDasheventDashbridgeLambdaFunction . Properties ;
486- expect ( properties . Runtime ) . to . equal ( 'nodejs22 .x' ) ;
486+ expect ( properties . Runtime ) . to . equal ( 'nodejs24 .x' ) ;
487487 } ) ;
488488
489- it ( 'falls back to nodejs22 runtime for S3 custom resource if provider runtime is not nodejs ' , async ( ) => {
489+ it ( 'falls back to nodejs24 runtime for S3 custom resource if provider runtime is not nodejs ' , async ( ) => {
490490 const { cfTemplate } = await runServerless ( {
491491 fixture : 's3' ,
492492 command : 'package' ,
@@ -500,7 +500,7 @@ describe('test/unit/lib/plugins/aws/customResources/index.test.js', () => {
500500
501501 const properties =
502502 cfTemplate . Resources . CustomDashresourceDashexistingDashs3LambdaFunction . Properties ;
503- expect ( properties . Runtime ) . to . equal ( 'nodejs22 .x' ) ;
503+ expect ( properties . Runtime ) . to . equal ( 'nodejs24 .x' ) ;
504504 } ) ;
505505
506506 it ( 'correctly takes stage from config into account when constructing apiGatewayCloudWatchRole resource' , async ( ) => {
0 commit comments