This repository was archived by the owner on Dec 10, 2020. It is now read-only.
File tree 4 files changed +5
-7
lines changed
4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ module.exports = function (config) {
4
4
5
5
files : [ 'lib/**/*.ts' , 'test/blockchain/chain.spec.ts' ] ,
6
6
7
- exclude : [ 'test/integration/**/*.ts' , 'test/cli/**/*.ts' ] ,
8
-
9
7
preprocessors : {
10
8
'**/*.ts' : [ 'karma-typescript' ] ,
11
9
} ,
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ export class RlpxServer extends Server {
140
140
*/
141
141
async stop ( ) : Promise < boolean > {
142
142
if ( this . started ) {
143
- this . rlpx ! . destroy ( ) // eslint-disable-line no-extra-semi
143
+ this . rlpx ! . destroy ( )
144
144
this . dpt ! . destroy ( )
145
145
await super . stop ( )
146
146
this . started = false
Original file line number Diff line number Diff line change 18
18
"build:browser" : " tsc -p ./tsconfig.browser.json && npm run bundle && rm -rf dist.browser" ,
19
19
"bundle" : " webpack" ,
20
20
"client:start" : " ts-node bin/cli.ts" ,
21
- "coverage" : " nyc npm run coverage:test && nyc report --reporter=lcov" ,
22
- "coverage:test" : " npm run tape -- 'test/**/*.spec.ts'" ,
21
+ "coverage" : " nyc npm run test && nyc report --reporter=lcov" ,
23
22
"docs:build" : " typedoc --tsconfig tsconfig.prod.json" ,
24
23
"lint" : " ethereumjs-config-lint" ,
25
24
"lint:fix" : " ethereumjs-config-lint-fix" ,
26
25
"tape" : " tape -r ts-node/register" ,
27
- "test" : " npm run tape -- 'test/**/*.spec.ts'" ,
26
+ "test" : " npm run tape -- 'test/!(cli)/ **/*.spec.ts'" ,
28
27
"test:unit" : " npm run tape -- 'test/!(integration|cli)/**/*.spec.ts'" ,
29
28
"test:integration" : " npm run tape -- 'test/integration/**/*.spec.ts'" ,
30
29
"test:cli" : " npm run build:node && npm run tape -- 'test/cli/*.spec.ts'" ,
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ import tape from 'tape'
4
4
tape ( '[CLI]' , ( t ) => {
5
5
t . test ( 'should begin downloading blocks' , { timeout : 260000 } , ( t ) => {
6
6
const file = require . resolve ( '../../dist/bin/cli.js' )
7
- const child = spawn ( process . execPath , [ file ] )
7
+ const args = [ file , '--loglevel' , 'debug' ]
8
+ const child = spawn ( process . execPath , args )
8
9
9
10
const timeout = setTimeout ( ( ) => {
10
11
child . kill ( 'SIGINT' )
You can’t perform that action at this time.
0 commit comments