Recently, I finally integrated unit testing into my startup project. I've settled with Jest, I'll speak more about this in a separate journal ent...
For further actions, you may consider blocking this person and/or reporting abuse
Friendly advice, try not to test implementations, rather do it with integrations. It's not worth when you do refractors or even renames and your tests start failing, although the logic and result of your program is still the same.
Fair point— thanks for sharing! 💪
Wouldn't these non-exported functions really be implementation details that don't really need testing? It doesn't (or shouldn't) matter how the internals work
(What Federico said!)
Just a bit curious. Why did you decide not to export the function?
Can you test the functions in a React functional component with this?
Unfortunately, I’m not super familiar with React, so I’m not sure 😓 ...but if you find out, please do share! I’m sure others would love to know as well 😊
Alright, I'll have a go at it and let you know of the outcome.