From 2e113830a5f6255a0bcb2944f9dfac1c3447cae2 Mon Sep 17 00:00:00 2001 From: venkats09 <97122017+venkats09@users.noreply.github.com> Date: Tue, 15 Mar 2022 13:03:07 -0700 Subject: [PATCH] CEC-1167 implementing ths coverage thresold (#128) --- .github/workflows/test.yml | 3 +-- package.json | 12 +++++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b4f8231..8b510b2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,6 @@ name: Node.js CI -on: push -# [pull_request] +on: [pull_request] jobs: build: diff --git a/package.json b/package.json index fb0e940..30e73af 100644 --- a/package.json +++ b/package.json @@ -58,11 +58,17 @@ "collectCoverageFrom": [ "src/**/*.{js,jsx,ts,tsx}" ], + "coverageThreshold": { + "global": { + "branches": 39, + "functions": 47, + "lines": 50, + "statements": 49 + } + }, "coverageReporters": [ "html", - "json", - "lcov", - "cobertura" + "lcov" ] } } \ No newline at end of file