From b99b3bb5a3390137c27673373b1fd80ea996771a Mon Sep 17 00:00:00 2001 From: Arthur Buldauskas Date: Wed, 8 Nov 2023 12:32:56 -0500 Subject: [PATCH] fix tests --- src/__tests__/server.test.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/__tests__/server.test.mjs b/src/__tests__/server.test.mjs index 20eb835..858f577 100644 --- a/src/__tests__/server.test.mjs +++ b/src/__tests__/server.test.mjs @@ -15,7 +15,7 @@ test.before(async (t) => { try { t.context.server = await server({ port: SERVER_PORT, - nodeProcess: { on() {}, exit() {} }, + nodeProcess: { on() {}, exit() {}, pid: '0' }, }); // Setup a tiny server @@ -199,7 +199,7 @@ test.serial('pause', async (t) => { }); // NOTE: This does work but needs a better cache mock -test('server - reset', async (t) => { +test.serial('server - reset', async (t) => { t.assert(t.context.server, `Server init error: ${t.context.error?.stack}`); const cacheDir = path.join(PROJECT_ROOT, 'src', '__mocks__', 'cache-dir');