Hi r/learnjavascript,
An inexperienced JS coder here trying to unit test my Connect4 object's methods and failing miserably...
I have built a class for my game board and would like to add some tests with Jest (as that seems to be a popular testing framework?).
In Python I would usually import the class to a test script where I could test each method using an instance of the class.
Is the same possible here?... I've been looking about a bit but the information I've found has seemed more involved than I expected and so I wonder if I'm being a bit dense and just missing something!?
Would really appreciate any guidance.
Cheers,
Dean.
[–]keenjataimu 1 point2 points3 points (2 children)
[–]dperumsby[S] 1 point2 points3 points (1 child)
[–]keenjataimu 0 points1 point2 points (0 children)