This repo contains an example on unit testing using Jest Framework Link:
Contributing to the packages contained in this repo is easy:
after checking out, run npm install
(this will run the packages).
to run all tests, simply run npm test
in the root directory.
to run tests for a single package cd package/:name and run npm test
within the package's folder.