DEV Community

Discussion on: How to test classes with Jest

Collapse
 
flipecoelho profile image
felipe coelho

Thanks for this article. Im starting to learn test and jest. Is it really necessary to test if the method is created(expect(validator.setRule()).toBeUndefined())? I imagine that javascript already guarantees us that it will create the method.