fix: Event emitter not cleared in export tests (#8228)

This commit is contained in:
Stevche Radevski authored and GitHub committed 2024-07-22 21:43:22 +02:00
1 parent 223325eb09
commit 4c67599730
1 file changed
+4
@@ -150,6 +150,10 @@ medusaIntegrationTestRunner({
).data.product
})
afterEach(() => {
;(eventBus as any).eventEmitter_.removeAllListeners()
})
describe("POST /admin/products/export", () => {
it("should export a csv file containing the expected products", async () => {
const subscriberExecution = TestEventUtils.waitSubscribersExecution(