File tree Expand file tree Collapse file tree 4 files changed +24
-2
lines changed Expand file tree Collapse file tree 4 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 3
3
- " 4"
4
4
- " 6"
5
5
- " 8"
6
+ after_success : npm run coverage
Original file line number Diff line number Diff line change 1
1
# line-bot-sdk-nodejs
2
2
3
- [ ![ Travis CI] ( https://travis-ci.org/line/line-bot-sdk-nodejs.svg?branch=master )] ( https://travis-ci.org/line/line-bot-sdk-nodejs ) [ ![ npmjs] ( https://badge.fury.io/js/%40line%2Fbot-sdk.svg )] ( https://www.npmjs.com/package/@line/bot-sdk )
3
+ [ ![ Travis CI] ( https://travis-ci.org/line/line-bot-sdk-nodejs.svg?branch=master )] ( https://travis-ci.org/line/line-bot-sdk-nodejs )
4
+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/line/line-bot-sdk-nodejs/badge.svg?branch=master )] ( https://coveralls.io/github/line/line-bot-sdk-nodejs?branch=master )
5
+ [ ![ npmjs] ( https://badge.fury.io/js/%40line%2Fbot-sdk.svg )] ( https://www.npmjs.com/package/@line/bot-sdk )
4
6
5
7
Node.js SDK for LINE Messaging API
6
8
Original file line number Diff line number Diff line change 14
14
],
15
15
"scripts" : {
16
16
"pretest" : " npm run build" ,
17
- "test" : " API_BASE_URL=http://localhost:1234/ TEST_PORT=1234 TS_NODE_CACHE=0 mocha -r ts-node/register test/*.spec.ts" ,
17
+ "test" : " API_BASE_URL=http://localhost:1234/ TEST_PORT=1234 TS_NODE_CACHE=0 nyc mocha" ,
18
+ "coverage" : " nyc report --reporter=text-lcov | coveralls" ,
18
19
"prettier" : " prettier --parser typescript --trailing-comma all \" {lib,test}/**/*.ts\" " ,
19
20
"format" : " npm run prettier -- --write" ,
20
21
"format:check" : " npm run prettier -- -l" ,
47
48
"devDependencies" : {
48
49
"@types/express" : " ^4.0.35" ,
49
50
"@types/mocha" : " ^2.2.41" ,
51
+ "coveralls" : " ^3.0.2" ,
50
52
"del-cli" : " ^1.1.0" ,
51
53
"express" : " ^4.16.3" ,
52
54
"gitbook-cli" : " ^2.3.2" ,
53
55
"husky" : " ^0.14.3" ,
54
56
"mocha" : " ^5.2.0" ,
57
+ "nyc" : " ^12.0.2" ,
55
58
"prettier" : " ^1.8.2" ,
56
59
"ts-node" : " ^3.3.0" ,
57
60
"typescript" : " ^2.6.1"
58
61
},
62
+ "nyc" : {
63
+ "require" : [
64
+ " ts-node/register"
65
+ ],
66
+ "extension" : [
67
+ " .ts"
68
+ ],
69
+ "reporter" : [
70
+ " lcov" ,
71
+ " text-summary"
72
+ ],
73
+ "sourceMap" : true ,
74
+ "instrument" : true
75
+ },
59
76
"license" : " Apache-2.0"
60
77
}
Original file line number Diff line number Diff line change
1
+ --require ts-node/register
2
+ test/*.spec.ts
You can’t perform that action at this time.
0 commit comments