]> zoso.dev Git - libnemo.git/commitdiff
Increase Node.js listener limit in globals importing during testing.
authorChris Duncan <chris@zoso.dev>
Thu, 21 Nov 2024 05:19:07 +0000 (21:19 -0800)
committerChris Duncan <chris@zoso.dev>
Thu, 21 Nov 2024 05:19:07 +0000 (21:19 -0800)
test/GLOBALS.mjs

index fa33be3e79a4d0b72645364f91db07dd881cf6f1..8ae5cae951a9e07ebc5b8f03c2d9ddf4b734c119 100644 (file)
@@ -1,6 +1,9 @@
 // SPDX-FileCopyrightText: 2024 Chris Duncan <chris@zoso.dev>
 // SPDX-License-Identifier: GPL-3.0-or-later
 
+import { EventEmitter } from 'node:events'
+EventEmitter.defaultMaxListeners = navigator.hardwareConcurrency * 2
+
 if (globalThis.sessionStorage == null) {
        const _sessionStorage = {}
        Object.defineProperty(globalThis, 'sessionStorage', {