From 163b95b768397c0d0fc2e67a9ecdd6360617b94c Mon Sep 17 00:00:00 2001 From: Timothy Jones Date: Sat, 16 Nov 2024 18:23:13 +1100 Subject: [PATCH] test: Use beforeEach instead of beforeAll --- packages/case-core/src/index.http.response.internals.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/case-core/src/index.http.response.internals.spec.ts b/packages/case-core/src/index.http.response.internals.spec.ts index 349b4415..56e02189 100644 --- a/packages/case-core/src/index.http.response.internals.spec.ts +++ b/packages/case-core/src/index.http.response.internals.spec.ts @@ -111,10 +111,10 @@ describe('simple get endpoint', () => { }); describe('with a running server', () => { let server: http.Server; - beforeAll(async () => { + beforeEach(async () => { server = await start(PORT); }); - afterAll(() => { + afterEach(() => { const closePromise = new Promise((resolve) => { server.on('close', () => { resolve();