diff --git a/karma.conf.js b/karma.conf.js index 3201761..8d6c1b4 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -4,8 +4,6 @@ module.exports = function (config) { files: ['lib/**/*.ts', 'test/blockchain/chain.spec.ts'], - exclude: ['test/integration/**/*.ts', 'test/cli/**/*.ts'], - preprocessors: { '**/*.ts': ['karma-typescript'], }, diff --git a/lib/net/server/rlpxserver.ts b/lib/net/server/rlpxserver.ts index 2aede49..c602696 100644 --- a/lib/net/server/rlpxserver.ts +++ b/lib/net/server/rlpxserver.ts @@ -140,7 +140,7 @@ export class RlpxServer extends Server { */ async stop(): Promise { if (this.started) { - this.rlpx!.destroy() // eslint-disable-line no-extra-semi + this.rlpx!.destroy() this.dpt!.destroy() await super.stop() this.started = false diff --git a/package.json b/package.json index 78fd615..44e9d9c 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "lint": "ethereumjs-config-lint", "lint:fix": "ethereumjs-config-lint-fix", "tape": "tape -r ts-node/register", - "test": "npm run tape -- 'test/**/*.spec.ts'", + "test": "npm run tape -- 'test/!(cli)/**/*.spec.ts'", "test:unit": "npm run tape -- 'test/!(integration|cli)/**/*.spec.ts'", "test:integration": "npm run tape -- 'test/integration/**/*.spec.ts'", "test:cli": "npm run build:node && npm run tape -- 'test/cli/*.spec.ts'", diff --git a/test/cli/cli.spec.ts b/test/cli/cli.spec.ts index acb7f64..1900079 100644 --- a/test/cli/cli.spec.ts +++ b/test/cli/cli.spec.ts @@ -4,7 +4,8 @@ import tape from 'tape' tape('[CLI]', (t) => { t.test('should begin downloading blocks', { timeout: 260000 }, (t) => { const file = require.resolve('../../dist/bin/cli.js') - const child = spawn(process.execPath, [file]) + const args = [file, '--loglevel', 'debug'] + const child = spawn(process.execPath, args) const timeout = setTimeout(() => { child.kill('SIGINT')