cannot destructure property of 'undefined' or 'null' jest
Did you manage to resolve the issue?. optional chaining operator (?.)