Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #150 from Sage/added-better-coverage
Browse files Browse the repository at this point in the history
improved coverage collection for all files
  • Loading branch information
andrewjtait authored Aug 8, 2017
2 parents 33614f4 + 67d0d66 commit bfbd434
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions jest.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"testMatch": [ "**/__spec__.js" ],
"moduleDirectories": [ "src", "node_modules" ],
"collectCoverage": true,
"coveragePathIgnorePatterns": [ "node_modules", "src\/__spec_helper__" ],
"coverageReporters": [ "text-summary", "html" ],
"coverageDirectory": "<rootDir>/coverage",
"notify": true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "carbon-factory",
"version": "2.0.0-rc1",
"version": "2.0.0-rc2",
"description": "Tools to help create user interfaces with Carbon and React.",
"main": "./jest.conf.json",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/gulp/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ export default function(options) {
});

if (argv.build) {
cliOptions = { config: config }
config.collectCoverageFrom = [ "src/***/**/!(__spec__).{js,jsx}" ]; // ensures all files are checked for coverage
cliOptions = { config: config };
}

if (argv.runInBand) {
Expand Down

0 comments on commit bfbd434

Please sign in to comment.