From a3a49632062356a8cd77505489d244eb3301f9fb Mon Sep 17 00:00:00 2001 From: Andre Miras Date: Sat, 7 Dec 2019 19:58:17 +0100 Subject: [PATCH] Fixes CI may fail silently Piping to `coveralls` made the CI not failing properly, refs: https://github.com/nickmerwin/node-coveralls/issues/230 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3e5be28..da2ae69 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ ], "scripts": { "test": "jest --coverage", - "test:coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls", + "test:coveralls": "jest --coverage && coveralls < coverage/lcov.info", "lint": "eslint src/*.js", "test:inspect": "node --inspect node_modules/.bin/jest --runInBand src/index.test.js", "test:debug": "node debug node_modules/.bin/jest --runInBand src/index.test.js",