Variable: toBeSome
consttoBeSome:MatcherFunction
Defined in: testing/matchers/option.ts:47
Assert that an Option is Some, optionally checking the value.
Example
import { expect } from 'vitest'
import { some, none } from 'receta/option'
expect(some(5)).toBeSome() // Pass
expect(some(5)).toBeSome(5) // Pass
expect(some(5)).toBeSome(10) // Fail
expect(none()).not.toBeSome() // Pass