1
1
describe ( "emitWarningIfUnsupportedVersion" , ( ) => {
2
2
let emitWarningIfUnsupportedVersion : any ;
3
3
const emitWarning = process . emitWarning ;
4
- const supportedVersion = "16 .0.0" ;
4
+ const supportedVersion = "18 .0.0" ;
5
5
6
6
beforeEach ( ( ) => {
7
7
const module = require ( "./emitWarningIfUnsupportedVersion" ) ;
@@ -14,7 +14,7 @@ describe("emitWarningIfUnsupportedVersion", () => {
14
14
process . emitWarning = emitWarning ;
15
15
} ) ;
16
16
17
- describe . skip ( `emits warning for Node.js <${ supportedVersion } ` , ( ) => {
17
+ describe ( `emits warning for Node.js <${ supportedVersion } ` , ( ) => {
18
18
const getPreviousMajorVersion = ( major : number ) => ( major === 0 ? 0 : major - 1 ) ;
19
19
20
20
const getPreviousMinorVersion = ( [ major , minor ] : [ number , number ] ) =>
@@ -38,12 +38,12 @@ describe("emitWarningIfUnsupportedVersion", () => {
38
38
expect ( process . emitWarning ) . toHaveBeenCalledTimes ( 1 ) ;
39
39
expect ( process . emitWarning ) . toHaveBeenCalledWith (
40
40
`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
41
- no longer support Node.js 14 .x on May 1, 2024 .
41
+ no longer support Node.js 16 .x on January 6, 2025 .
42
42
43
43
To continue receiving updates to AWS services, bug fixes, and security
44
- updates please upgrade to an active Node.js LTS version.
44
+ updates please upgrade to a supported Node.js LTS version.
45
45
46
- More information can be found at: https://a.co/dzr2AJd `
46
+ More information can be found at: https://a.co/74kJMmI `
47
47
) ;
48
48
49
49
// Verify that the warning emits only once.
0 commit comments