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

This commit is contained in:
Stevche Radevski
2024-07-22 21:43:22 +02:00
committed by GitHub
parent 223325eb09
commit 4c67599730

View File

@@ -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(