I saw people suggesting these
test.info().annotations.push({ type: " Warning", description: JSON.stringify(warning) });
and expect.soft() here, maybe that?
expect.soft()