Variable: toEqualOption
consttoEqualOption:MatcherFunction
Defined in: testing/matchers/option.ts:144
Deep equality check for Option types.
Example
import { expect } from 'vitest'
import { some, none } from 'receta/option'
expect(some(5)).toEqualOption(some(5)) // Pass
expect(none()).toEqualOption(none()) // Pass
expect(some(5)).toEqualOption(some(10)) // Fail
expect(some(5)).toEqualOption(none()) // Fail