|
22 | 22 | "jsonlint": "find . -not -path './node_modules/*' -type f -name '*.json' -o -type f -name '*.json.example' | while read json; do echo $json ; jq . $json; done", |
23 | 23 | "standard": "echo 'standard is no longer being used, use `npm run eslint` instead!' && exit 1", |
24 | 24 | "start": "sequelize db:migrate && node app.js", |
25 | | - "test": "npm run-script eslint && npm run-script jsonlint && mocha" |
| 25 | + "mocha": "mocha --require intelli-espower-loader --exit ./test --recursive", |
| 26 | + "cov": "nyc mocha --require intelli-espower-loader --exit --recursive ./test", |
| 27 | + "test": "npm run-script eslint && npm run-script jsonlint && npm run-script mocha" |
26 | 28 | }, |
27 | 29 | "dependencies": { |
28 | 30 | "@hackmd/codemirror": "~5.41.2", |
|
162 | 164 | "file-loader": "~2.0.0", |
163 | 165 | "html-webpack-plugin": "~4.0.0-beta.2", |
164 | 166 | "imports-loader": "~0.8.0", |
| 167 | + "intelli-espower-loader": "^1.0.1", |
165 | 168 | "jsonlint": "~1.6.2", |
166 | 169 | "less": "~3.9.0", |
167 | 170 | "less-loader": "~4.1.0", |
168 | 171 | "mini-css-extract-plugin": "~0.4.1", |
169 | 172 | "mocha": "~5.2.0", |
170 | 173 | "mock-require": "~3.0.3", |
| 174 | + "nyc": "^14.0.0", |
171 | 175 | "optimize-css-assets-webpack-plugin": "~5.0.0", |
| 176 | + "power-assert": "^1.6.1", |
172 | 177 | "script-loader": "~0.7.2", |
173 | 178 | "sequelize-cli": "~5.4.0", |
| 179 | + "sinon": "^7.3.2", |
174 | 180 | "string-loader": "~0.0.1", |
175 | 181 | "style-loader": "~0.21.0", |
176 | 182 | "uglifyjs-webpack-plugin": "~1.2.7", |
|
196 | 202 | "name": "Christoph (Sheogorath) Kern", |
197 | 203 | "email": "codimd@sheogorath.shivering-isles.com" |
198 | 204 | } |
199 | | - ] |
| 205 | + ], |
| 206 | + "nyc": { |
| 207 | + "all": true, |
| 208 | + "include": [ |
| 209 | + "app.js", |
| 210 | + "lib/**/*.js" |
| 211 | + ], |
| 212 | + "reporter": "lcov" |
| 213 | + } |
200 | 214 | } |
0 commit comments