Giraffe
Giraffe2mo ago

@std/expect `anyOf` equivalent?

I have a value that promises either a value or undefined. How would I test this?
No description
1 Reply
Giraffe
GiraffeOP2mo ago
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.