[Pkg-javascript-devel] Bug#1027865: Cannot build for backports: fails test "npm package contains only the expected entries in the package dir"

Julian Gilbey jdg at debian.org
Wed Jan 4 09:37:29 GMT 2023


Package: node-jasmine
Version: 4.5.0+~cs8.8.0-1
Severity: normal

Hi,

I'm trying to backport node-jasmine to bullseye (see
https://bugs.debian.org/973617 for the reason).  Unfortunately, one of
the tests fails:

Failures:
1) npm package contains only the expected entries in the package dir
  Message:
    Expected $.length = 6 to equal 5.
    Expected $[0] = 'CHANGELOG.md' to equal 'MIT.LICENSE'.
    Expected $[1] = 'MIT.LICENSE' to equal 'README.md'.
    Expected $[2] = 'README.md' to equal 'bin'.
    Expected $[3] = 'bin' to equal 'lib'.
    Expected $[4] = 'lib' to equal 'package.json'.
    Unexpected $[5] = 'package.json' in array.
  Stack:
        at <Jasmine>
        at UserContext.<anonymous> (/home/user/node-jasmine-4.5.0+~cs8.8.0/spec/npm_package_spec.js:54:19)
        at <Jasmine>

I thought it might be to do with an older version of dh-nodejs, but
even upgrading to the current testing version of dh-nodejs made no
difference - I still get the same error.

Any ideas what might be causing this?  I could always just skip this
test if it's an innocuous issue.

Best wishes,

   Julian



More information about the Pkg-javascript-devel mailing list