I have a function that looks as follows:
function foo() {
const x = await getData();
if (x && x['token']) {
// do stuff
} else {
throw Error("Doesn't exist")
}
}
when running my integration tests, I am getting an issue with the tests failing because it's throwing. This is old code though and not a new change. I work on a large project and think there was a recent change in the test suite but not sure where to check first to start debugging