[Pkg-javascript-devel] Bug#997575: node-style-loader: FTBFS: dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1

Lucas Nussbaum lucas at debian.org
Sat Oct 23 22:06:36 BST 2021


Source: node-style-loader
Version: 2.0.0-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20211023 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> NODE_ENV=production babeljs src -d dist --copy-files
> Successfully compiled 5 files with Babel (597ms).
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test --buildsystem=nodejs
> 	mkdir -p node_modules
> 	ln -s ../. node_modules/style-loader
> 	/bin/sh -ex debian/tests/pkg-js/test
> + jest --ci -u test/runtime/isEqualLocals.test.js test/runtime/injectStylesIntoLinkTag.test.js test/runtime/injectStylesIntoStyleTag.test.js test/cjs.test.js
> PASS test/runtime/isEqualLocals.test.js
> FAIL test/runtime/injectStylesIntoLinkTag.test.js
>   ● addStyle › should work
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoLinkTag.test.js:43:5)
> 
>   ● addStyle › should work with "attributes" option
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoLinkTag.test.js:43:5)
> 
>   ● addStyle › should work with "__webpack_nonce__" variable
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoLinkTag.test.js:43:5)
> 
>   ● addStyle › should work with "nonce" attribute and "__webpack_nonce__" variable
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoLinkTag.test.js:43:5)
> 
>   ● addStyle › should work with "insert" option
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoLinkTag.test.js:43:5)
> 
>   ● addStyle › should work with "insert" option #2
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoLinkTag.test.js:43:5)
> 
>   ● addStyle › should work with "insert" option #3
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoLinkTag.test.js:43:5)
> 
>   ● addStyle › should work with "insert" option #4
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoLinkTag.test.js:43:5)
> 
>   ● addStyle › should work with "insert" option #5
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoLinkTag.test.js:43:5)
> 
>   ● addStyle › should throw error with incorrect "insert" option
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoLinkTag.test.js:43:5)
> 
>   ● addStyle › should throw error with invalid "insert" option
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoLinkTag.test.js:43:5)
> 
>   ● addStyle › should work with updates
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoLinkTag.test.js:43:5)
> 
>   ● addStyle › should work with updates #2
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoLinkTag.test.js:43:5)
> 
>   ● addStyle › should work with updates #3
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoLinkTag.test.js:43:5)
> 
>   ● addStyle › should work with updates #4
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoLinkTag.test.js:43:5)
> 
>   ● addStyle › should work with updates #5
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoLinkTag.test.js:43:5)
> 
> FAIL test/runtime/injectStylesIntoStyleTag.test.js
>   ● addStyle › should work
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with multiple styles
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with same module id in list
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with media
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with source maps
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with "__webpack_nonce__" variable
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with "nonce" attribute and "__webpack_nonce__" variable
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with "base" option
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with "attributes" option
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with "attributes" option #2
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with "insert" option
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with "insert" option #2
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with "insert" option #3
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with "insert" option #4
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with "insert" option #5
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with "insert" option #6
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should throw error with incorrect "insert" option
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should throw error with invalid "insert" option
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with updates
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with updates #2
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with updates #3
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with updates #4
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with updates #5
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with updates #6
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with updates #7
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with updates #8
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with updates #9
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with updates #10
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with updates #11
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with updates #12
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with updates #12
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with updates #13
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with updates #14
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › issue 447
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › issue 447 #2
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with empty modules list
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work without modules
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with empty modules list #2
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should work with empty modules list #3
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
>   ● addStyle › should avoid duplicate modules
> 
>     The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
>     Consider using the "jsdom" test environment.
> 
>     ReferenceError: document is not defined
> 
>       41 | describe('addStyle', () => {
>       42 |   beforeEach(() => {
>     > 43 |     document.head.innerHTML = '<title>Title</title>';
>          |     ^
>       44 |     document.body.innerHTML = '<h1>Hello world</h1>';
>       45 |   });
>       46 | 
> 
>       at Object.<anonymous> (test/runtime/injectStylesIntoStyleTag.test.js:43:5)
> 
> PASS test/cjs.test.js
> 
> Test Suites: 2 failed, 2 passed, 4 total
> Tests:       56 failed, 2 passed, 58 total
> Snapshots:   0 total
> Time:        4.718 s
> Ran all test suites matching /test\/runtime\/isEqualLocals.test.js|test\/runtime\/injectStylesIntoLinkTag.test.js|test\/runtime\/injectStylesIntoStyleTag.test.js|test\/cjs.test.js/i.
> 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/2021/10/23/node-style-loader_2.0.0-2_unstable.log

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