From 10d8b3ea5e15419500d717638469e95f0f2d29cc Mon Sep 17 00:00:00 2001 From: Ethan Arrowood Date: Wed, 2 May 2018 06:50:00 +1000 Subject: [PATCH] Update examples to include Jest (#183) * Update examples to include Jest Also included link to my project where I am successfully implementing jest coverage and travis-ci * jest example command use pipe to coveralls --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index e5229236..df52f416 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,13 @@ There are optional environment variables for other build systems as well: * COVERALLS_RUN_AT (a date string for the time that the job ran. RFC 3339 dates work. This defaults to your build system's date/time if you don't set it.) * COVERALLS_PARALLEL (more info here: https://coveralls.zendesk.com/hc/en-us/articles/203484329) +### [Jest](https://facebook.github.io/jest/) +- Install [jest](https://facebook.github.io/jest/docs/en/getting-started.html) +- Use the following to run tests and push files to coveralls: +```sh +jest --coverage --coverageReporters=text-lcov | coveralls +``` +Check out an example [here](https://github.com/Ethan-Arrowood/harperdb-connect/blob/master/.travis.yml) which makes use of Travis-CI build stages ### [Mocha](http://mochajs.org/) + [Blanket.js](https://github.com/alex-seville/blanket) - Install [blanket.js](http://blanketjs.org/)