fix: Event emitter not cleared in export tests (#8228)
This commit is contained in:
@@ -150,6 +150,10 @@ medusaIntegrationTestRunner({
|
|||||||
).data.product
|
).data.product
|
||||||
})
|
})
|
||||||
|
|
||||||
|
afterEach(() => {
|
||||||
|
;(eventBus as any).eventEmitter_.removeAllListeners()
|
||||||
|
})
|
||||||
|
|
||||||
describe("POST /admin/products/export", () => {
|
describe("POST /admin/products/export", () => {
|
||||||
it("should export a csv file containing the expected products", async () => {
|
it("should export a csv file containing the expected products", async () => {
|
||||||
const subscriberExecution = TestEventUtils.waitSubscribersExecution(
|
const subscriberExecution = TestEventUtils.waitSubscribersExecution(
|
||||||
|
|||||||
Reference in New Issue
Block a user