Join Slack
Powered by
<https://dev.to/kerooker/writing-reusable-tests-wi...
# feed
l
LeoColman
04/16/2020, 8:37 PM
https://dev.to/kerooker/writing-reusable-tests-with-kotest-s-test-factory-5gi
👍 7
c
cedric
04/17/2020, 12:34 AM
These factories are not very useful if you can't feed instances with different parameters. Is this possible?
l
LeoColman
04/17/2020, 12:35 AM
It is possible, yes. The function that creates the test can receive any parameters you desire
LeoColman
04/17/2020, 12:36 AM
In the example I used an interface such as
SumOp
as a parameter
3
Views
Open in Slack
Previous
Next