We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f292ecd commit 949971cCopy full SHA for 949971c
test/utils/setup.mts
@@ -0,0 +1,8 @@
1
+/** @fileoverview Vitest setup file for test utilities. */
2
+import events from 'node:events'
3
+
4
+import abortSignal from '@socketsecurity/registry/lib/constants/abort-signal'
5
6
+// Increase max listeners for abortSignal to prevent warnings during high-concurrency tests.
7
+// The batchPackageStream method can add many concurrent abort listeners.
8
+events.setMaxListeners(50, abortSignal)
0 commit comments