[Pkg-javascript-devel] Bug#1011850: node-sparkles: FTBFS: dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
Lucas Nussbaum
lucas at debian.org
Thu May 26 20:15:50 BST 2022
Source: node-sparkles
Version: 1.0.1-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220525 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> debian/rules binary
> dh binary
> dh_update_autotools_config
> dh_autoreconf
> dh_auto_configure --buildsystem=nodejs
> dh_auto_build --buildsystem=nodejs
> No build command found, searching known files
> dh_auto_test --buildsystem=nodejs
> mkdir -p node_modules
> ln -s ../. node_modules/sparkles
> /bin/sh -ex debian/tests/pkg-js/test
> + jest --ci --testRegex test/.*\.js
> FAIL test/index.js
> ● sparkles() › will attach the sparkles store namespace to global
>
> TypeError: expect is not a function
>
> 22 |
> 23 | it('will attach the sparkles store namespace to global', function(done) {
> > 24 | expect(global['store at sparkles']).toBeDefined();
> | ^
> 25 | done();
> 26 | });
> 27 |
>
> at Object.<anonymous> (test/index.js:24:5)
>
> ● sparkles() › will attach an event emitter to the sparkles store default namespace
>
> TypeError: expect is not a function
>
> 27 |
> 28 | it('will attach an event emitter to the sparkles store default namespace', function(done) {
> > 29 | expect(global['store at sparkles']).toHaveProperty('default');
> | ^
> 30 | done();
> 31 | });
> 32 |
>
> at Object.<anonymous> (test/index.js:29:5)
>
> ● sparkles() › removes the event emitter from the store when remove is called
>
> TypeError: expect is not a function
>
> 34 | ee.on('test', noop);
> 35 | ee.remove();
> > 36 | expect(global['store at sparkles']).not.toHaveProperty('default');
> | ^
> 37 | done();
> 38 | });
> 39 | });
>
> at Object.<anonymous> (test/index.js:36:5)
>
> FAIL test/exists.js
> ● sparkles.exists() › checks if a namespace has been defined
>
> TypeError: expect is not a function
>
> 8 |
> 9 | it('checks if a namespace has been defined', function(done) {
> > 10 | expect(sparkles.exists('test')).toBe(false);
> | ^
> 11 | var ee = sparkles('test');
> 12 | expect(sparkles.exists('test')).toBe(true);
> 13 | ee.remove();
>
> at Object.<anonymous> (test/exists.js:10:5)
>
> FAIL test/namespace.js
> ● namespace › should use an EE from sparkles namespace if it already exists
>
> TypeError: expect is not a function
>
> 23 | var sparkles = require('../')();
> 24 |
> > 25 | expect(sparkles.custom).toEqual('ee');
> | ^
> 26 | done();
> 27 | });
> 28 |
>
> at Object.<anonymous> (test/namespace.js:25:5)
>
> ● namespace › should allow custom namespaces
>
> TypeError: expect is not a function
>
> 33 | var sparkles = require('../')('customNamespace');
> 34 |
> > 35 | expect(sparkles.custom).toEqual(true);
> | ^
> 36 | done();
> 37 | });
> 38 | });
>
> at Object.<anonymous> (test/namespace.js:35:5)
>
> Test Suites: 3 failed, 3 total
> Tests: 6 failed, 6 total
> Snapshots: 0 total
> Time: 3.454 s
> Ran all test suites.
> dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
The full build log is available from:
http://qa-logs.debian.net/2022/05/25/node-sparkles_1.0.1-2_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220525;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220525&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the Pkg-javascript-devel
mailing list