chore(build): require all source files in the tests so the coverage report shows untested files

pull/118/head
Romain 6 years ago
parent 81a85004c2
commit 72a23807f1

6
package-lock.json generated

@ -3997,6 +3997,12 @@
}
}
},
"require-all": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/require-all/-/require-all-2.2.0.tgz",
"integrity": "sha1-tEIMIzrAKC0P9Jsnf7iAqLXeCJQ=",
"dev": true
},
"require-directory": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",

@ -61,6 +61,7 @@
"markdown-toc": "^1.1.0",
"mocha": "^5.1.1",
"mock-fs": "^4.5.0",
"require-all": "^2.2.0",
"require-lint": "^1.3.0",
"should": "^13.2.1",
"standard": "^11.0.1",

@ -0,0 +1,6 @@
const path = require('path')
const requireAll = require('require-all')
// require all source code
// so that the coverage report is accurate
requireAll(path.join(__dirname, '..', 'src'))

@ -1 +1,2 @@
--recursive
--require test/helpers.js

Loading…
Cancel
Save