Add coverage
parent
1db63dbb98
commit
b733333ba1
|
@ -1 +1,4 @@
|
|||
node_modules/
|
||||
.nyc_output/
|
||||
coverage/
|
||||
npm-debug.log
|
||||
|
|
|
@ -6,3 +6,5 @@ node_js:
|
|||
cache:
|
||||
directories:
|
||||
- "node_modules"
|
||||
after_success:
|
||||
- "npm install coveralls@3 && nyc report --reporter=text-lcov | coveralls"
|
||||
|
|
|
@ -7,7 +7,6 @@ const pathlib = require('path');
|
|||
const extractors = require('./extractors');
|
||||
const Command = require('./commands');
|
||||
const {Scope, Module} = require('./scope');
|
||||
const {consume, log} = require('./utils');
|
||||
|
||||
class Collector {
|
||||
constructor(parser, root = '.') {
|
||||
|
|
|
@ -11,11 +11,6 @@ function partition(iter, predicate) {
|
|||
return [left, right];
|
||||
}
|
||||
|
||||
function log(arg, depth = 5) {
|
||||
console.dir(arg, {colors: true, depth});
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
partition,
|
||||
log,
|
||||
};
|
||||
|
|
|
@ -27,9 +27,10 @@
|
|||
"resolve": "^1.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jsondiffpatch": "^0.2.5"
|
||||
"jsondiffpatch": "^0.2.5",
|
||||
"nyc": "^11.3.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node tests/do"
|
||||
"test": "nyc --reporter=text node tests/do"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue