Closed phillip-le closed 2 months ago
Satisfies lets you use Partial, tells you when there are unrecognised keys and lets you override mocks
Partial
EDIT: ok it doesn't work because satisfies will reduce the typing to Mock<Procedure> instead of what it pretends to be
satisfies
Mock<Procedure>
Maybe satisfies Partial<> as Full would work? Need to check that it still bans unknown keys
satisfies Partial<> as Full
what about when you aren’t using vi.fn() e.g. just generating mock data?
vi.fn()
Satisfies lets you use
Partial
, tells you when there are unrecognised keys and lets you override mocksEDIT: ok it doesn't work because
satisfies
will reduce the typing toMock<Procedure>
instead of what it pretends to beMaybe
satisfies Partial<> as Full
would work? Need to check that it still bans unknown keyswhat about when you aren’t using
vi.fn()
e.g. just generating mock data?