Skip to content

Commit c126f15

Browse files
committed
bring back coverage-min
1 parent d5649b0 commit c126f15

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

‎package.json‎

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,29 +92,30 @@
9292
"test": "node --max-old-space-size=4096 --harmony --trace-deprecation node_modules/.bin/jest",
9393
"test:integration": "node --max-old-space-size=4096 --harmony --trace-deprecation node_modules/.bin/jest --testMatch '<rootDir>/test/*.test.js'",
9494
"test:unit": "node --max-old-space-size=4096 --harmony --trace-deprecation node_modules/.bin/jest --testMatch '<rootDir>/test/*.unittest.js'",
95-
"travis:integration": "npm run cover:init && npm run cover:integration",
95+
"travis:integration": "npm run cover:init && npm run cover:integration && yarn cover:report-min",
9696
"travis:unit": "yarn cover:init && yarn cover:unit",
9797
"travis:lint": "yarn lint-files",
9898
"travis:benchmark": "yarn benchmark",
99-
"appveyor:integration": "yarn cover:init && yarn cover:integration",
100-
"appveyor:unit": "yarn cover:init && yarn cover:unit",
99+
"appveyor:integration": "yarn cover:init && yarn cover:integration && yarn cover:report-min",
100+
"appveyor:unit": "yarn cover:init && yarn cover:unit && yarn cover:report-min",
101101
"appveyor:benchmark": "yarn benchmark",
102-
"circleci:test": "node --max-old-space-size=4096 --harmony node_modules/.bin/jest --ci --reporters jest-silent-reporter",
102+
"circleci:test": "node --max-old-space-size=4096 --harmony --trace-deprecation node_modules/.bin/jest --ci --reporters jest-silent-reporter",
103103
"circleci:lint": "yarn lint",
104104
"build:examples": "cd examples && node buildAll.js",
105105
"pretest": "yarn lint",
106106
"prelint": "yarn setup",
107107
"lint": "yarn code-lint && yarn schema-lint",
108108
"code-lint": "eslint setup lib bin hot buildin \"test/*.js\" \"test/**/webpack.config.js\" \"examples/**/webpack.config.js\" \"schemas/**/*.js\"",
109-
"fix": "npm run lint -- --fix",
109+
"fix": "yarn code-lint --fix",
110110
"pretty": "prettier \"setup/**/*.js\" \"lib/**/*.js\" \"bin/*.js\" \"hot/*.js\" \"buildin/*.js\" \"test/*.js\" \"test/**/webpack.config.js\" \"examples/**/webpack.config.js\" \"schemas/**/*.js\" --write",
111111
"schema-lint": "node --max-old-space-size=4096 --harmony node_modules/.bin/jest --reporters jest-silent-reporter --testMatch '<rootDir>/test/*.lint.js'",
112112
"benchmark": "node --max-old-space-size=4096 --harmony node_modules/.bin/jest --reporters jest-silent-reporter --testMatch '<rootDir>/test/*.benchmark.js' --runInBand",
113-
"cover": "yarn cover:init && yarn cover:all",
113+
"cover": "yarn cover:init && yarn cover:all && yarn cover:report",
114114
"cover:init": "rimraf coverage",
115115
"cover:all": "node --no-deprecation --max-old-space-size=4096 --harmony node_modules/.bin/jest --coverage",
116116
"cover:integration": "node --no-deprecation --max-old-space-size=4096 --harmony node_modules/.bin/jest --testMatch '<rootDir>/test/*.test.js' --coverage",
117117
"cover:unit": "node --no-deprecation --max-old-space-size=4096 --harmony node_modules/.bin/jest --testMatch '<rootDir>/test/*.unittest.js' --coverage",
118+
"cover:report": "istanbul report",
118119
"cover:report-min": "istanbul report --report lcovonly"
119120
},
120121
"jest": {
@@ -137,8 +138,13 @@
137138
],
138139
"coverageDirectory": "<rootDir>/coverage",
139140
"coveragePathIgnorePatterns": [
140-
"\\.runtime\\.js$"
141+
"\\.runtime\\.js$",
142+
"<rootDir>/test/"
141143
],
142-
"testEnvironment": "node"
144+
"testEnvironment": "node",
145+
"coverageReporters": [
146+
"json",
147+
"lcov"
148+
]
143149
}
144150
}

0 commit comments

Comments
 (0)