[Pkg-javascript-devel] Bug#968182: mocha: fails at runtime: Error: Cannot find module 'strip-json-comments'
Jonas Smedegaard
dr at jones.dk
Mon Aug 10 11:08:41 BST 2020
Package: mocha
Version: 7.0.1+ds1-2
Severity: important
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
running mocha for recent releases of project domino fails:
NODE_ENV=test mocha --reporter tap --no-timeout test/domino.js test/index.js test/parsing.js test/xss.js
/usr/share/nodejs/mocha/lib/cli/config.js:84
throw new Error(`failed to parse config "${filepath}": ${err}`);
^
Error: failed to parse config "/build/node-domino-2.1.6~ds/.mocharc.json": Error: Cannot find module 'strip-json-comments'
It seems that the mere existence of a JSON-based config file
makes mocha require strip-json-comments.
Mocha should depend on (or at least recommend) node-strip-json-comments.
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAl8xHKIACgkQLHwxRsGg
ASEOpA//XjynHjnQRbf9RKT3B5EernM/LySGlxavrhs5i5AxTHxHomUgSImmg6ZE
sM5SkMeFWoP54M9+4Xaewa15lxyzNsXYabSSSVx8kp5kNHEi/Bdr8y49c4sbIE1m
oWqtwrC0Z95gqwzz/0qDObq4xTYG2swpRgrWqxH1tY2IcDWJxGNxwdX48Sgd79N9
JQyn9EUaOPnLjfOQ6eKdU5zP4PBteOKcNZnVzCNG7JkwfDKO6sS7NU0y1q28sp5G
zw9xBuFzyAaZh5RRCCt9l35nDrYXTLcltJ6I7P+EjSdDlnOQvXj//8t2NS4Oy4AF
za0EfZ/laozlzyyaZBm+5gLaPtGlDm6QSTyG6fCQ/eEIKlsCVrJG6WSY7vlL5ZgH
UiQ9JIgBW1+PojWiSkGS/rspIwms63Xv7mtJ4TtMVpfm0oz0g6y9msvGXSWIicCT
oI6jZXkQSeTjLd+YayEvMA/aqbj1z8QPnpohcPpTaXoI8eeeOJSTqUDkBvSq4LKU
JPGhv4lJvcQll9lYcjBcDDNZR1IWJLMGNixPFwYIg3WtQE7RkPw87MaTVoi2yJmq
dE2BQrqtcyvVsQm0RzIgW3nHyJiuJjC2MlFNSF2CpuiNbFtcuKbkeeA8ahw3eK5k
VnuUqjs1DRbDzqXe4O7iffLqZBCi2rdspPlmcnrfbO90adzw39c=
=dIa7
-----END PGP SIGNATURE-----
More information about the Pkg-javascript-devel
mailing list