UNIT testing JavaScript code for beginners, is it possible?

Good day to everyone reading!

There are such initial data: there is some JavaScript code in a vacuum, there are any errors.
There is such task: A JavaScript code with errors must be subjected to unit testing (test all functions).

Well and now actually a question: how to do it? No, of course I'm not stupid and even more, I can read and see perfectly the search bar, and I even delved into all of the pages in the results search, but I as a novice in this question is a complete cycle, for example, open the file, write it, plug it.

It is clear that there are no such guidelines, but for a beginner who had never had a with this to compare information from different sources about Jasmine, Grunt, & etc. it is very difficult.

I don't expect I had someone write such an article or do anything for me, just would like to find a person who has passed this difficult path and could help with advice on how and what to do. Well, if all the same there are such materials, I am grateful for proof.
September 18th 19 at 23:59
2 answers
September 19th 19 at 00:01
A small project with unit testsin the package.json can be seen as they run, and in the folder test actually tests.
Thanks for the reply!
Can PM more to ask? - Citlalli_OReilly27 commented on September 19th 19 at 00:04
: I'm not big in tests, but ask. Soap on github, github profile) - ward_Bins commented on September 19th 19 at 00:07
September 19th 19 at 00:03
First, many well-known JS projects on GitHub have the tests, look at them.
Second, choose a framework with which you write the tests.
Try to start with QUnit: Introduction to Unit Testing.
Article for beginners: JavaScript unit testing in PhpStorm.

Find more questions by tags Development through testingModular testingTesting softwareJavaScript