Hello Guys,
I updated one dependency(@aws-sdk/client-s3) for my project and started getting this error
Test suite failed to run
Jest encountered an unexpected token
Details:
/Users/asing13/WebstormProjects/ScanItRepos/document-service/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/EndpointParameters.js:7
useFipsEndpoint: options.useFipsEndpoint ?? false,
^
SyntaxError: Unexpected token '?'
at Runtime.createScriptFromCode (../node_modules/jest-runtime/build/index.js:1350:14)
at Object.<anonymous> (../node_modules/@aws-sdk/client-s3/dist-cjs/S3Client.js:18:30)