We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 263c1d5 commit a186750Copy full SHA for a186750
setupTest.js
@@ -3,3 +3,12 @@
3
process.env.CHOKIDAR_USEPOLLING = true;
4
5
jest.setTimeout(140000);
6
+
7
+if (expect.getState().testPath.includes("test/e2e")) {
8
+ afterEach(() => {
9
+ // We add listeners to signals when creating a new Server instance, but have no cleanup method
10
+ // So ensure they are removed after each run to prevent EventEmitter memory leak warnings
11
+ process.removeAllListeners("SIGINT");
12
+ process.removeAllListeners("SIGTERM");
13
+ });
14
+}
0 commit comments