From 0615960121ae5c2bcffe37e4ba938bbc3ef783cc Mon Sep 17 00:00:00 2001 From: Benjamin Boudreau Date: Tue, 29 May 2018 22:11:02 -0400 Subject: [PATCH] adding test coverage --- .circleci/config.yml | 5 ++++- .gitignore | 1 + package.json | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8d17f24..dcc89c9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,6 +8,9 @@ jobs: - run: name: dep install command: npm install + - run: + name: install codecov + command: npm install -g codecov - run: name: test - command: npm test + command: npm test && codecov diff --git a/.gitignore b/.gitignore index 3c3629e..ba2a97b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +coverage diff --git a/package.json b/package.json index bbfa611..7bf78e2 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,8 @@ ] }, "jest": { + "coverageDirectory": "./coverage/", + "collectCoverage": true, "transform": { "^.+\\.(js|jsx|mjs)$": "/node_modules/babel-jest", "^.+\\.(css|scss)$": "/jest/cssTransform.js",