Hi, community How do you test your Reason code (provided you test at all)? Do you use
bs-jest and test the ML modules, or do you run
bsb first and then test the resulting JS?
I have a suspicion that plain Jest could turn out more robust and flexible at the moment, especially if one needs to mock something. Especially if what the said one needs to mock is the Node
fs module, which, one hears, might require a careful selection of a mocking solution.
And of course, there might be other considerations, like the unit tests being independent of types. Not that I expect unit tests to catch a lot of bugs that are supposed to be covered by the OCaml type system. But then I probably have too little experience with both types and TDD to know what can and cannot be caught by types.