If you are in a hurry you can fork/download this repo which has example tests and the relevant packages already set up: https://github.com/coopdigital/quickstartjest
This should get you to the point of writing a first test. It assumes OS X with homebrew installed. (see https://brew.sh/)
On Linux you should be able to substitute apt-get, yum etc when brew is mentioned. It might help to have node and npm already installed but we will be wrapping tooling around these.
This is geared towards Node but it should be the same for front-end code with test AFAIK (feel free to correct me).