fix(tests): maxlistenerwarning in unit tests

This commit is contained in:
Tomas Martykan
2025-11-07 13:10:10 +01:00
committed by Tomáš Martykán
parent 19cb478e7a
commit 60342ebade

View File

@@ -13,6 +13,11 @@ class CustomEnvironment extends NodeEnvironment {
}
});
}
async teardown() {
process.removeAllListeners('warning');
await super.teardown();
}
}
module.exports = CustomEnvironment;