Optional Chaining is creating issue when I'm try to set the tsConfig Target as ESNext, ES2021 or ES2020. But works fine when I set the target to ES2019. Not sure what I am doing wrong.
Below is the look alike of my jest config:
{ ..., transform: { '^.+\\.(ts|tsx)$': 'ts-jest', }, globals: { 'ts-jest': { tsConfig: { target: 'ES2019', }, }, }