We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$mock module supports only unions of mocks ($mock.union).
$mock
$mock.union
It could be useful to have intersections of mocks as follows:
const mockA = $mock.struct({ a: $mock.string }) const mockB = $mock.struct({ b: $mock.number }) const mockC = $mock.intersection(mockA, mockB)
Something similar, currently can be achieved this way:
const mockC = pipe( mockA, $mock.bindTo('mockA'), $mock.apS('mockB', mockB), $mock.map(({ mockA, mockB }) => ({ ...mockA, ...mockB, })) )
The text was updated successfully, but these errors were encountered:
No branches or pull requests
$mock
module supports only unions of mocks ($mock.union
).It could be useful to have intersections of mocks as follows:
Something similar, currently can be achieved this way:
The text was updated successfully, but these errors were encountered: