Skip to content

Commit

Permalink
Remove process listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath committed Oct 2, 2023
1 parent bfc509e commit f79b8c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/fixtures/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ export const start = async (): Promise<string> => {

export const stop = async (): Promise<void> => {
await new Promise((resolve) => server.close(resolve as (err?: Error) => {}));
process.removeAllListeners();
};

0 comments on commit f79b8c7

Please sign in to comment.