|
92 | 92 | "test": "node --max-old-space-size=4096 --harmony --trace-deprecation node_modules/.bin/jest", |
93 | 93 | "test:integration": "node --max-old-space-size=4096 --harmony --trace-deprecation node_modules/.bin/jest --testMatch '<rootDir>/test/*.test.js'", |
94 | 94 | "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", |
96 | 96 | "travis:unit": "yarn cover:init && yarn cover:unit", |
97 | 97 | "travis:lint": "yarn lint-files", |
98 | 98 | "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", |
101 | 101 | "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", |
103 | 103 | "circleci:lint": "yarn lint", |
104 | 104 | "build:examples": "cd examples && node buildAll.js", |
105 | 105 | "pretest": "yarn lint", |
106 | 106 | "prelint": "yarn setup", |
107 | 107 | "lint": "yarn code-lint && yarn schema-lint", |
108 | 108 | "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", |
110 | 110 | "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", |
111 | 111 | "schema-lint": "node --max-old-space-size=4096 --harmony node_modules/.bin/jest --reporters jest-silent-reporter --testMatch '<rootDir>/test/*.lint.js'", |
112 | 112 | "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", |
114 | 114 | "cover:init": "rimraf coverage", |
115 | 115 | "cover:all": "node --no-deprecation --max-old-space-size=4096 --harmony node_modules/.bin/jest --coverage", |
116 | 116 | "cover:integration": "node --no-deprecation --max-old-space-size=4096 --harmony node_modules/.bin/jest --testMatch '<rootDir>/test/*.test.js' --coverage", |
117 | 117 | "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", |
118 | 119 | "cover:report-min": "istanbul report --report lcovonly" |
119 | 120 | }, |
120 | 121 | "jest": { |
|
137 | 138 | ], |
138 | 139 | "coverageDirectory": "<rootDir>/coverage", |
139 | 140 | "coveragePathIgnorePatterns": [ |
140 | | - "\\.runtime\\.js$" |
| 141 | + "\\.runtime\\.js$", |
| 142 | + "<rootDir>/test/" |
141 | 143 | ], |
142 | | - "testEnvironment": "node" |
| 144 | + "testEnvironment": "node", |
| 145 | + "coverageReporters": [ |
| 146 | + "json", |
| 147 | + "lcov" |
| 148 | + ] |
143 | 149 | } |
144 | 150 | } |
0 commit comments