From 1da9dd43b2acbbcf4d1d9cc6aa38c20d2a34b275 Mon Sep 17 00:00:00 2001 From: Cole Bemis Date: Thu, 17 May 2018 23:19:02 -0700 Subject: [PATCH] test: Track code coverage --- .travis.yml | 1 + package.json | 5 +++++ src/__tests__/index.test.js | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 57eab34..f463fbc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ before_script: script: - npm run all after_success: + - npx codecov - npx babel-node ./bin/sync-algolia.js deploy: provider: script diff --git a/package.json b/package.json index 507427f..6791b27 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,11 @@ "path": "cz-conventional-changelog" } }, + "jest": { + "collectCoverageFrom": [ + "src/**/*.js" + ] + }, "dependencies": { "classnames": "^2.2.5" }, diff --git a/src/__tests__/index.test.js b/src/__tests__/index.test.js index dd49716..f970b07 100644 --- a/src/__tests__/index.test.js +++ b/src/__tests__/index.test.js @@ -1,5 +1,5 @@ /* eslint-env jest */ -import feather from '../..'; +import feather from '../index'; test('has correct properties', () => { expect(feather).toHaveProperty('icons');