chore(medusa-test-utils): Prevent waiting for event indefinately (#12137)

**What**
Currently the util await for event infinitely, this can lead to chain crashes in the jest tests suites leading to too much noise to investigate proper issues.
We now have a default time out raced against the promise that is configurable to prevent from waiting for an excessive amount of time
This commit is contained in:
Adrien de Peretti
2025-04-10 11:09:29 +02:00
committed by GitHub
parent 8804ca2f9c
commit 6ae1e7b708
4 changed files with 297 additions and 3 deletions

View File

@@ -0,0 +1,2 @@
const defineJestConfig = require("../../define_jest_config")
module.exports = defineJestConfig({})