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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.