[From nobody Sat May  2 07:23:08 2026
Received: (at submit) by bugs.debian.org; 1 May 2026 23:13:23 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-121.2 required=4.0 tests=ALL_TRUSTED,BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
 DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,HAS_PACKAGE,SPF_HELO_PASS,
 SPF_NONE,USER_IN_DKIM_WELCOMELIST,X_DEBBUGS_CC autolearn=ham
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 44; hammy, 150; neutral, 140; spammy,
 0. spammytokens: hammytokens:0.000-+--forky,
 0.000-+--H*F:U*sanvila, 
 0.000-+--HTo:N*Debian, 0.000-+--H*rp:U*sanvila, 0.000-+--sk:dh_auto
Return-path: &lt;sanvila@debian.org&gt;
Received: from mailly.debian.org ([2001:41b8:202:deb:6564:a62:52c3:4b72]:57844)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;sanvila@debian.org&gt;) id 1wIx2x-000EHM-1D
 for submit@bugs.debian.org; Fri, 01 May 2026 23:13:23 +0000
Received: via submission
 from C=NA, ST=NA, L=Ankh Morpork, O=Debian SMTP, OU=Debian SMTP CA,
 CN=paradis.debian.org, EMAIL=hostmaster@paradis.debian.org (verified)
 by mailly.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;sanvila@debian.org&gt;) id 1wIx2v-0004YE-2v
 for submit@bugs.debian.org; Fri, 01 May 2026 23:13:22 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.paradis;
 h=Date:Message-Id:Subject:To:From:Reply-To:Cc:
 MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=C2nn0LENwDUlFUk8kPRu768KYBEyFZQXkkSxTfjntwo=; b=hwKwpu34S5xFGsK61R1XwT2nQd
 4QuELpFamZFrRCo5Dd6ZJjYJkV920K4dZ0iUo2d3+kr6uD+nwASHpCKNGQgpkGiFgq5TPrcDGrViY
 LHwcFn4h75fqUBMc/Dj8IubjZ1FaXWO4PMSpV2Xq1IEBICDESJtZX2aDuPFMK2hSWCL3n+Y8LudCA
 laJdHSPtY9SVOhwv6ClUL67uBeKb9nbsnn2vqbG85ExRQx4dSIv8aPgDhaaAcJ2TVUGu5TDo8uCqM
 d6iX813Zq4wXQlLO0H866CU5qPWBSJTj4a8BhMp9he07V4eKn7NycqtmiuCKlZ5+rdL223DFxPYtC
 EGUvOQhA==;
Received: from sanvila by paradis.debian.org with local (Exim 4.96)
 (envelope-from &lt;sanvila@debian.org&gt;) id 1wIx2u-0005KN-25
 for submit@bugs.debian.org; Fri, 01 May 2026 23:13:20 +0000
From: Santiago Vila &lt;sanvila@debian.org&gt;
To: Debian BTS &lt;submit@bugs.debian.org&gt;
Subject: node-fs-extra: FTBFS: TypeError [ERR_INVALID_ARG_VALUE]: The argument
 'type' must be one of: 'dir', 'file', 'junction', null,
 undefined. Received [Function: callback]
X-Debbugs-Cc: sanvila@debian.org
Message-Id: &lt;E1wIx2u-0005KN-25@paradis.debian.org&gt;
Date: Fri, 01 May 2026 23:13:20 +0000
Delivered-To: submit@bugs.debian.org

Package: src:node-fs-extra
Version: 10.1.0+~9.0.13-2
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202605/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:node-fs-extra, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   dh_auto_clean --buildsystem=nodejs
	rm -rf ./node_modules/.cache ./.nyc_output
	rm -rf types-fs-extra/node_modules/.cache types-fs-extra/.nyc_output
rm ./node_modules/.cache
rm types-fs-extra/node_modules/.cache
rm ./node_modules/.cache
unlink node_modules/@types/fs-extra
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure --buildsystem=nodejs

[... snipped ...]


  8) fse-ensure-symlink
       ensureSymlinkSync()
         should create symlink file using src ./foo.txt and dst ./real-alpha/real-beta/real-gamma/symlink.txt:
     TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
      at Object.symlinkSync (node:fs:1851:3)
      at createSymlinkSync (lib/ensure/symlink.js:74:25)
      at Context.&lt;anonymous&gt; (lib/ensure/__tests__/symlink.test.js:211:7)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
      at /usr/share/nodejs/mocha/lib/runner.js:842:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
      at /usr/share/nodejs/mocha/lib/runner.js:644:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
      at process.processImmediate (node:internal/timers:504:21)

  9) fse-ensure-symlink
       ensureSymlinkSync()
         should create symlink file using src ./foo.txt and dst ./alpha/symlink.txt:
     TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
      at Object.symlinkSync (node:fs:1851:3)
      at createSymlinkSync (lib/ensure/symlink.js:76:13)
      at Context.&lt;anonymous&gt; (lib/ensure/__tests__/symlink.test.js:211:7)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
      at /usr/share/nodejs/mocha/lib/runner.js:842:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
      at /usr/share/nodejs/mocha/lib/runner.js:644:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
      at process.processImmediate (node:internal/timers:504:21)

  10) fse-ensure-symlink
       ensureSymlinkSync()
         should create symlink file using src ./foo.txt and dst ./alpha/beta/symlink.txt:
     TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
      at Object.symlinkSync (node:fs:1851:3)
      at createSymlinkSync (lib/ensure/symlink.js:76:13)
      at Context.&lt;anonymous&gt; (lib/ensure/__tests__/symlink.test.js:211:7)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
      at /usr/share/nodejs/mocha/lib/runner.js:842:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
      at /usr/share/nodejs/mocha/lib/runner.js:644:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
      at process.processImmediate (node:internal/timers:504:21)

  11) fse-ensure-symlink
       ensureSymlinkSync()
         should create symlink file using src ./foo.txt and dst ./alpha/beta/gamma/symlink.txt:
     TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
      at Object.symlinkSync (node:fs:1851:3)
      at createSymlinkSync (lib/ensure/symlink.js:76:13)
      at Context.&lt;anonymous&gt; (lib/ensure/__tests__/symlink.test.js:211:7)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
      at /usr/share/nodejs/mocha/lib/runner.js:842:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
      at /usr/share/nodejs/mocha/lib/runner.js:644:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
      at process.processImmediate (node:internal/timers:504:21)

  12) fse-ensure-symlink
       ensureSymlinkSync()
         should create symlink dir using src ./dir-foo and dst ./symlink-dir-foo:
     TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
      at Object.symlinkSync (node:fs:1851:3)
      at createSymlinkSync (lib/ensure/symlink.js:74:25)
      at Context.&lt;anonymous&gt; (lib/ensure/__tests__/symlink.test.js:261:7)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
      at /usr/share/nodejs/mocha/lib/runner.js:842:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
      at /usr/share/nodejs/mocha/lib/runner.js:644:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
      at process.processImmediate (node:internal/timers:504:21)

  13) fse-ensure-symlink
       ensureSymlinkSync()
         should create symlink dir using src ../dir-bar and dst ./dir-foo/symlink-dir-bar:
     TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
      at Object.symlinkSync (node:fs:1851:3)
      at createSymlinkSync (lib/ensure/symlink.js:74:25)
      at Context.&lt;anonymous&gt; (lib/ensure/__tests__/symlink.test.js:261:7)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
      at /usr/share/nodejs/mocha/lib/runner.js:842:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
      at /usr/share/nodejs/mocha/lib/runner.js:644:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
      at process.processImmediate (node:internal/timers:504:21)

  14) fse-ensure-symlink
       ensureSymlinkSync()
         should create symlink dir using src ./dir-bar and dst ./dir-foo/symlink-dir-bar:
     TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
      at Object.symlinkSync (node:fs:1851:3)
      at createSymlinkSync (lib/ensure/symlink.js:74:25)
      at Context.&lt;anonymous&gt; (lib/ensure/__tests__/symlink.test.js:261:7)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
      at /usr/share/nodejs/mocha/lib/runner.js:842:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
      at /usr/share/nodejs/mocha/lib/runner.js:644:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
      at process.processImmediate (node:internal/timers:504:21)

  15) fse-ensure-symlink
       ensureSymlinkSync()
         should create symlink dir using src ./dir-bar and dst ./empty-dir/symlink-dir-bar:
     TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
      at Object.symlinkSync (node:fs:1851:3)
      at createSymlinkSync (lib/ensure/symlink.js:74:25)
      at Context.&lt;anonymous&gt; (lib/ensure/__tests__/symlink.test.js:261:7)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
      at /usr/share/nodejs/mocha/lib/runner.js:842:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
      at /usr/share/nodejs/mocha/lib/runner.js:644:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
      at process.processImmediate (node:internal/timers:504:21)

  16) fse-ensure-symlink
       ensureSymlinkSync()
         should create symlink dir using src ./dir-bar and dst ./real-alpha/symlink-dir-bar:
     TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
      at Object.symlinkSync (node:fs:1851:3)
      at createSymlinkSync (lib/ensure/symlink.js:74:25)
      at Context.&lt;anonymous&gt; (lib/ensure/__tests__/symlink.test.js:261:7)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
      at /usr/share/nodejs/mocha/lib/runner.js:842:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
      at /usr/share/nodejs/mocha/lib/runner.js:644:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
      at process.processImmediate (node:internal/timers:504:21)

  17) fse-ensure-symlink
       ensureSymlinkSync()
         should create symlink dir using src ./dir-bar and dst ./real-alpha/real-beta/symlink-dir-bar:
     TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
      at Object.symlinkSync (node:fs:1851:3)
      at createSymlinkSync (lib/ensure/symlink.js:74:25)
      at Context.&lt;anonymous&gt; (lib/ensure/__tests__/symlink.test.js:261:7)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
      at /usr/share/nodejs/mocha/lib/runner.js:842:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
      at /usr/share/nodejs/mocha/lib/runner.js:644:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
      at process.processImmediate (node:internal/timers:504:21)

  18) fse-ensure-symlink
       ensureSymlinkSync()
         should create symlink dir using src ./dir-bar and dst ./real-alpha/real-beta/real-gamma/symlink-dir-bar:
     TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
      at Object.symlinkSync (node:fs:1851:3)
      at createSymlinkSync (lib/ensure/symlink.js:74:25)
      at Context.&lt;anonymous&gt; (lib/ensure/__tests__/symlink.test.js:261:7)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
      at /usr/share/nodejs/mocha/lib/runner.js:842:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
      at /usr/share/nodejs/mocha/lib/runner.js:644:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
      at process.processImmediate (node:internal/timers:504:21)

  19) fse-ensure-symlink
       ensureSymlinkSync()
         should create symlink dir using src ./dir-foo and dst ./alpha/dir-foo:
     TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
      at Object.symlinkSync (node:fs:1851:3)
      at createSymlinkSync (lib/ensure/symlink.js:76:13)
      at Context.&lt;anonymous&gt; (lib/ensure/__tests__/symlink.test.js:261:7)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
      at /usr/share/nodejs/mocha/lib/runner.js:842:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
      at /usr/share/nodejs/mocha/lib/runner.js:644:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
      at process.processImmediate (node:internal/timers:504:21)

  20) fse-ensure-symlink
       ensureSymlinkSync()
         should create symlink dir using src ./dir-foo and dst ./alpha/beta/dir-foo:
     TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
      at Object.symlinkSync (node:fs:1851:3)
      at createSymlinkSync (lib/ensure/symlink.js:76:13)
      at Context.&lt;anonymous&gt; (lib/ensure/__tests__/symlink.test.js:261:7)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
      at /usr/share/nodejs/mocha/lib/runner.js:842:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
      at /usr/share/nodejs/mocha/lib/runner.js:644:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
      at process.processImmediate (node:internal/timers:504:21)

  21) fse-ensure-symlink
       ensureSymlinkSync()
         should create symlink dir using src ./dir-foo and dst ./alpha/beta/gamma/dir-foo:
     TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
      at Object.symlinkSync (node:fs:1851:3)
      at createSymlinkSync (lib/ensure/symlink.js:76:13)
      at Context.&lt;anonymous&gt; (lib/ensure/__tests__/symlink.test.js:261:7)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
      at /usr/share/nodejs/mocha/lib/runner.js:842:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
      at /usr/share/nodejs/mocha/lib/runner.js:644:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
      at process.processImmediate (node:internal/timers:504:21)

  22) fse-ensure-symlink
       ensureSymlinkSync()
         should create symlink file using src /tmp/fs-extra/ensure-symlink/foo.txt and dst ./symlink.txt:
     TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
      at Object.symlinkSync (node:fs:1851:3)
      at createSymlinkSync (lib/ensure/symlink.js:74:25)
      at Context.&lt;anonymous&gt; (lib/ensure/__tests__/symlink.test.js:211:7)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
      at /usr/share/nodejs/mocha/lib/runner.js:842:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
      at /usr/share/nodejs/mocha/lib/runner.js:644:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
      at process.processImmediate (node:internal/timers:504:21)

  23) fse-ensure-symlink
       ensureSymlinkSync()
         should create symlink file using src /tmp/fs-extra/ensure-symlink/dir-foo/foo.txt and dst ./symlink.txt:
     TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
      at Object.symlinkSync (node:fs:1851:3)
      at createSymlinkSync (lib/ensure/symlink.js:74:25)
      at Context.&lt;anonymous&gt; (lib/ensure/__tests__/symlink.test.js:211:7)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
      at /usr/share/nodejs/mocha/lib/runner.js:842:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
      at /usr/share/nodejs/mocha/lib/runner.js:644:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
      at process.processImmediate (node:internal/timers:504:21)



dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 23
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
]