Skip to content

Commit 9cae7a8

Browse files
committed
Ignore bins, get coverage
1 parent 3bc148a commit 9cae7a8

File tree

6 files changed

+88
-12
lines changed

6 files changed

+88
-12
lines changed

__tests__/format_type.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*eslint max-len: 0 */
22
'use strict';
33

4-
var _formatType = require('../lib/output/util/format_type'),
5-
LinkerStack = require('../lib/output/util/linker_stack'),
4+
var _formatType = require('../src/output/util/format_type'),
5+
LinkerStack = require('../src/output/util/linker_stack'),
66
remark = require('remark'),
77
parse = require('doctrine-temporary-fork').parse;
88

__tests__/linker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
var LinkerStack = require('../lib/output/util/linker_stack');
2+
var LinkerStack = require('../src/output/util/linker_stack');
33

44
test('linkerStack', function() {
55
var linkerStack = new LinkerStack({});

__tests__/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
var documentationSchema = require('documentation-schema'),
44
validate = require('json-schema'),
55
documentation = require('../'),
6-
outputMarkdown = require('../lib/output/markdown.js'),
7-
outputMarkdownAST = require('../lib/output/markdown_ast.js'),
8-
outputHtml = require('../lib/output/html.js'),
6+
outputMarkdown = require('../src/output/markdown.js'),
7+
outputMarkdownAST = require('../src/output/markdown_ast.js'),
8+
outputHtml = require('../src/output/html.js'),
99
normalize = require('./utils').normalize,
1010
glob = require('glob'),
1111
pify = require('pify'),

__tests__/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22
var http = require('http');
3-
import { walk } from '../lib/walk';
3+
import { walk } from '../src/walk';
44
var concat = require('concat-stream');
55

66
function get(url, callback) {

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"disparity": "^2.0.0",
2626
"doctrine-temporary-fork": "2.0.0-alpha-allowarrayindex",
2727
"get-comments": "^1.0.1",
28+
"get-port": "^3.1.0",
2829
"git-url-parse": "^6.0.1",
2930
"github-slugger": "1.1.1",
3031
"glob": "^7.0.0",
@@ -48,7 +49,6 @@
4849
"strip-json-comments": "^2.0.0",
4950
"tiny-lr": "^1.0.3",
5051
"unist-builder": "^1.0.0",
51-
"get-port": "^3.1.0",
5252
"unist-util-visit": "^1.0.1",
5353
"vfile": "^2.0.0",
5454
"vfile-reporter": "^3.0.0",
@@ -65,6 +65,7 @@
6565
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.1",
6666
"babel-preset-flow": "^6.23.0",
6767
"chdir": "0.0.0",
68+
"coveralls": "^2.13.1",
6869
"cz-conventional-changelog": "2.0.0",
6970
"documentation-schema": "0.0.1",
7071
"eslint": "^3.19.0",
@@ -105,14 +106,18 @@
105106
"changelog": "standard-changelog -i CHANGELOG.md -w",
106107
"self-lint": "node ./bin/documentation.js lint src",
107108
"test": "npm run build && eslint src && are-we-flow-yet src && flow check && jest",
108-
"test-ci": "npm run build && eslint src && are-we-flow-yet src && flow check && jest --runInBand"
109+
"test-ci": "npm run build && eslint src && are-we-flow-yet src && flow check && jest --runInBand && coveralls < coverage/lcov.info"
109110
},
110111
"jest": {
111112
"testPathIgnorePatterns": [
112113
"/node_modules/",
113114
"utils.js",
114115
"fixture"
115116
],
117+
"coveragePathIgnorePatterns": [
118+
"<rootDir>/lib/"
119+
],
120+
"collectCoverage": true,
116121
"testEnvironment": "node"
117122
},
118123
"config": {

yarn.lock

Lines changed: 74 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ babel-plugin-check-es2015-constants@^6.22.0:
435435
dependencies:
436436
babel-runtime "^6.22.0"
437437

438-
babel-plugin-istanbul@^4.0.0, babel-plugin-istanbul@^4.1.3:
438+
babel-plugin-istanbul@^4.0.0:
439439
version "4.1.3"
440440
resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.3.tgz#6ee6280410dcf59c7747518c3dfd98680958f102"
441441
dependencies:
@@ -1091,6 +1091,10 @@ camelcase@^3.0.0:
10911091
version "3.0.0"
10921092
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a"
10931093

1094+
caseless@~0.11.0:
1095+
version "0.11.0"
1096+
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7"
1097+
10941098
caseless@~0.12.0:
10951099
version "0.12.0"
10961100
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
@@ -1464,6 +1468,16 @@ cosmiconfig@^1.1.0:
14641468
pinkie-promise "^2.0.0"
14651469
require-from-string "^1.1.0"
14661470

1471+
coveralls@^2.13.1:
1472+
version "2.13.1"
1473+
resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-2.13.1.tgz#d70bb9acc1835ec4f063ff9dac5423c17b11f178"
1474+
dependencies:
1475+
js-yaml "3.6.1"
1476+
lcov-parse "0.0.10"
1477+
log-driver "1.2.5"
1478+
minimist "1.2.0"
1479+
request "2.79.0"
1480+
14671481
cross-spawn@^5.0.1:
14681482
version "5.1.0"
14691483
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
@@ -1835,7 +1849,7 @@ espree@^3.4.0:
18351849
acorn "^5.0.1"
18361850
acorn-jsx "^3.0.0"
18371851

1838-
esprima@^2.7.1:
1852+
esprima@^2.6.0, esprima@^2.7.1:
18391853
version "2.7.3"
18401854
resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581"
18411855

@@ -2342,6 +2356,15 @@ har-schema@^1.0.5:
23422356
version "1.0.5"
23432357
resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e"
23442358

2359+
har-validator@~2.0.6:
2360+
version "2.0.6"
2361+
resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d"
2362+
dependencies:
2363+
chalk "^1.1.1"
2364+
commander "^2.9.0"
2365+
is-my-json-valid "^2.12.4"
2366+
pinkie-promise "^2.0.0"
2367+
23452368
har-validator@~4.2.1:
23462369
version "4.2.1"
23472370
resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a"
@@ -2635,7 +2658,7 @@ is-hexadecimal@^1.0.0:
26352658
version "1.0.0"
26362659
resolved "https://registry.yarnpkg.com/is-hexadecimal/-/is-hexadecimal-1.0.0.tgz#5c459771d2af9a2e3952781fd54fcb1bcfe4113c"
26372660

2638-
is-my-json-valid@^2.10.0:
2661+
is-my-json-valid@^2.10.0, is-my-json-valid@^2.12.4:
26392662
version "2.16.0"
26402663
resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.16.0.tgz#f079dd9bfdae65ee2038aae8acbc86ab109e3693"
26412664
dependencies:
@@ -3062,6 +3085,13 @@ js-tokens@^3.0.0:
30623085
version "3.0.1"
30633086
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7"
30643087

3088+
3089+
version "3.6.1"
3090+
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.6.1.tgz#6e5fe67d8b205ce4d22fad05b7781e8dadcc4b30"
3091+
dependencies:
3092+
argparse "^1.0.7"
3093+
esprima "^2.6.0"
3094+
30653095
js-yaml@^3.3.1, js-yaml@^3.4.3, js-yaml@^3.5.1, js-yaml@^3.7.0:
30663096
version "3.8.3"
30673097
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.8.3.tgz#33a05ec481c850c8875929166fe1beb61c728766"
@@ -3176,6 +3206,10 @@ lcid@^1.0.0:
31763206
dependencies:
31773207
invert-kv "^1.0.0"
31783208

3209+
3210+
version "0.0.10"
3211+
resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3"
3212+
31793213
leven@^2.0.0:
31803214
version "2.1.0"
31813215
resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580"
@@ -3304,6 +3338,10 @@ lodash@^4.0.0, lodash@^4.11.1, lodash@^4.14.0, lodash@^4.15.0, lodash@^4.2.0, lo
33043338
version "4.17.4"
33053339
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
33063340

3341+
3342+
version "1.2.5"
3343+
resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.5.tgz#7ae4ec257302fd790d557cb10c97100d857b0056"
3344+
33073345
log-symbols@^1.0.2:
33083346
version "1.0.2"
33093347
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18"
@@ -3973,6 +4011,10 @@ qs@^6.2.0, qs@~6.4.0:
39734011
version "6.4.0"
39744012
resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233"
39754013

4014+
qs@~6.3.0:
4015+
version "6.3.2"
4016+
resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.2.tgz#e75bd5f6e268122a2a0e0bda630b2550c166502c"
4017+
39764018
randomatic@^1.1.3:
39774019
version "1.1.6"
39784020
resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.6.tgz#110dcabff397e9dcff7c0789ccc0a49adf1ec5bb"
@@ -4245,6 +4287,31 @@ [email protected], replace-ext@^1.0.0:
42454287
version "1.0.0"
42464288
resolved "https://registry.yarnpkg.com/replace-ext/-/replace-ext-1.0.0.tgz#de63128373fcbf7c3ccfa4de5a480c45a67958eb"
42474289

4290+
4291+
version "2.79.0"
4292+
resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de"
4293+
dependencies:
4294+
aws-sign2 "~0.6.0"
4295+
aws4 "^1.2.1"
4296+
caseless "~0.11.0"
4297+
combined-stream "~1.0.5"
4298+
extend "~3.0.0"
4299+
forever-agent "~0.6.1"
4300+
form-data "~2.1.1"
4301+
har-validator "~2.0.6"
4302+
hawk "~3.1.3"
4303+
http-signature "~1.1.0"
4304+
is-typedarray "~1.0.0"
4305+
isstream "~0.1.2"
4306+
json-stringify-safe "~5.0.1"
4307+
mime-types "~2.1.7"
4308+
oauth-sign "~0.8.1"
4309+
qs "~6.3.0"
4310+
stringstream "~0.0.4"
4311+
tough-cookie "~2.3.0"
4312+
tunnel-agent "~0.4.1"
4313+
uuid "^3.0.0"
4314+
42484315
request@^2.79.0, request@^2.81.0:
42494316
version "2.81.0"
42504317
resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0"
@@ -4803,6 +4870,10 @@ tunnel-agent@^0.6.0:
48034870
dependencies:
48044871
safe-buffer "^5.0.1"
48054872

4873+
tunnel-agent@~0.4.1:
4874+
version "0.4.3"
4875+
resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb"
4876+
48064877
tweetnacl@^0.14.3, tweetnacl@~0.14.0:
48074878
version "0.14.5"
48084879
resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"

0 commit comments

Comments
 (0)