diff --git a/package.json b/package.json index c95e3c9..7018d7d 100644 --- a/package.json +++ b/package.json @@ -14,9 +14,9 @@ "example": "examples" }, "scripts": { - "test": "mocha --require ts-node/register npm run test:unit & test/**/*.spec.ts", + "test": "npm run test:unit & npm run test:e2e & npm run test:performance", "test:unit": "mocha --require ts-node/register lib/**/__test__/*.spec.ts", - "test:e2e": "mocha --require ts-node/register test/e2e/**/*.spec.ts", + "test:e2e": "mocha --require ts-node/register test/e2e/*.spec.ts", "test:performance": "mocha --require ts-node/register test/performance/*.spec.ts", "build": "rm -r dist/* & tsc", "release": "scripts/release.sh" diff --git a/test/e2e/webserver.spec.ts b/test/e2e/webserver.spec.ts index 4c76d2b..1ce76f9 100644 --- a/test/e2e/webserver.spec.ts +++ b/test/e2e/webserver.spec.ts @@ -1,6 +1,6 @@ import { expect } from 'chai'; import { describe, it, beforeEach, afterEach } from 'mocha'; -import http, { Server } from 'http'; +import http from 'http'; import { WebServer } from '../../lib/core/server'; import { Context, NxtFunction } from '../../lib/types';