From 9624b4a28a4196827341f99c0ab81dd63c33ba3a Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Fri, 16 Feb 2024 15:01:06 +0100 Subject: [PATCH] chore: dont close men ow --- package.json | 2 +- test/unit/server-token-registry.ts | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 00b60f3d..1740ed8f 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "start": "yarn build && node --max-http-header-size=32768 dist/server.js", "start-mainnet": "cross-env-shell NODE_ENV=mainnet \"yarn start\"", "start-testnet": "cross-env-shell NODE_ENV=testnet \"yarn start\"", - "test": "cross-env NODE_OPTIONS='--max-http-header-size 32768' NODE_ENV=test vitest", + "test": "cross-env NODE_OPTIONS='--max-http-header-size 32768' NODE_ENV=test vitest --run", "test-badges": "make-coverage-badge --output-path ./docs/images/badge.svg", "type-check": "tsc --project tsconfig.json" }, diff --git a/test/unit/server-token-registry.ts b/test/unit/server-token-registry.ts index d3346aa6..7575939c 100644 --- a/test/unit/server-token-registry.ts +++ b/test/unit/server-token-registry.ts @@ -1,8 +1,8 @@ import express from 'express'; -import { Server } from 'http'; +// import { Server } from 'http'; import * as mocks from './fixtures/token-registry.fixtures.js'; -let server: Server; +// let server: Server; const serverName = 'token registry server'; const port = 3100; @@ -17,10 +17,11 @@ export const setup = () => { }, ); - server = app.listen({ port }); + // server = app.listen({ port }); + app.listen({ port }); }; -export const teardown = () => { - console.log(`Closing ${serverName} mock on port ${port}`); - server.close(); -}; +// export const teardown = () => { +// console.log(`Closing ${serverName} mock on port ${port}`); +// // server.close(); +// };