expect(result.aaa).toBe(a);
expect(result.aaa).toBe(a || b);
expect.extend({
toBeInList(received, ...values) {
const pass = values.includes(received),
message = `expected ${received}${ pass ? '' : ' not'} equals ${values.join(" or ")}`
return {
message: () => message,
pass
}
});
expect(result.aaa).toBeInList(a, b);