@std/expect `anyOf` equivalent?
I have a value that promises either a value or undefined. How would I test this?
1 Reply
What I'm doing in this case is
expect(await a1 ?? 'ok').toBe('ok')
, but I'm kinda wondering how I'd do this in a more specific manner, as ??
could just return null
.