Chore/test runner improvements (#12439)

**What**
Make sure there is no open handles left and that the shutdown function are properly called. Refactor and improve the medusa test runner. Make sure all modules instances are released and cleaned up

**NOTE:**
On a separate PR we can continue the investigation for the memory growing over time while the tests execute
This commit is contained in:
Adrien de Peretti authored and GitHub committed 2025-05-14 13:17:41 +00:00
1 parent e60d15ea84
commit ab22faaa52
13 files changed
+562 -292

No files matched your search

@@ -328,7 +328,7 @@ export class DataSynchronizer {
break
}
await setTimeout(0)
await setTimeout(0, undefined, { ref: false })
}
let acknoledgement: { lastCursor: string; done?: boolean; err?: Error } = {