Skip to content

Commit

Permalink
test: Use beforeEach instead of beforeAll
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyJones committed Nov 16, 2024
1 parent 4a37442 commit 163b95b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/case-core/src/index.http.response.internals.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>((resolve) => {
server.on('close', () => {
resolve();
Expand Down

0 comments on commit 163b95b

Please sign in to comment.