[Pkg-javascript-devel] Bug#1022410: node-eslint-plugin-html: FTBFS: make[1]: *** [debian/rules:26: override_dh_auto_test] Error 1

Lucas Nussbaum lucas at debian.org
Sun Oct 23 14:15:14 BST 2022


Source: node-eslint-plugin-html
Version: 6.2.0-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20221023 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>>'
> jest --no-color --verbose
> PASS src/__tests__/getFileMode.js
>   ✓ undefined if filename is empty (4 ms)
>   ✓ 'html' if filename matches an HTML extension (1 ms)
>   ✓ 'html' if filename matches an HTML and an XML extension
>   ✓ 'xml' if filename matches an XML extension
>   ✓ undefined if filename ends with extension without dot
>   ✓ works with extensions starting with a dot
>   ✓ works with extensions containgin a dot (1 ms)
> 
> PASS src/__tests__/TransformableString.js
>   ✓ should be a function (4 ms)
>   toString
>     ✓ should return the original string if no transform are made (1 ms)
>   replace
>     ✓ should replace a slice (1 ms)
>     ✓ should throw if trying to replace the same thing twice (28 ms)
>     ✓ should replace adjacent slices
>   originalIndex
>     ✓ should return the same index if nothing changed
>     ✓ should throw if the index is invalid (2 ms)
>     ✓ should return the original index of a string with removed parts (2 ms)
>     ✓ should return the original index of a string with added parts (3 ms)
>     ✓ should return the original index of a string with added parts (2) (2 ms)
>     ✓ should return the last index of the last block if the index is after the end (1 ms)
>   originalLocation
>     ✓ should return the same location if nothing changed (3 ms)
>     ✓ should return the original location of a string with removed parts (2 ms)
>     ✓ should return the original location of a string with added parts (2 ms)
>   getOriginalLine
>     ✓ returns original lines (3 ms)
> 
> FAIL src/__tests__/extract.js
>   ✕ extract simple javascript (14 ms)
>   ✕ extract indented javascript (2 ms)
>   ✕ extract javascript with first line next to the script tag (2 ms)
>   ✕ extract javascript with last line next to the script tag (1 ms)
>   ✕ extract multiple script tags (1 ms)
>   ✕ trim last line spaces (1 ms)
>   ✕ trim last line spaces ignoring CDATA (1 ms)
>   ✕ extract script containing 'lower than' characters correctly (#1) (1 ms)
>   ✕ extract empty script tag (#7) (2 ms)
>   ✕ extracts a script tag with type=text/javascript (2 ms)
>   ✕ extracts a script tag with type=text/babel (2 ms)
>   ✕ extracts a script tag with type=text/x-javascript (1 ms)
>   ✕ extracts a script tag with type=text/x-babel (1 ms)
>   ✕ extracts a script tag with type=application/javascript (2 ms)
>   ✕ extracts a script tag with type=application/babel (1 ms)
>   ✕ extracts a script tag with type=application/x-javascript (1 ms)
>   ✕ extracts a script tag with type=application/x-babel (1 ms)
>   ✕ collects bad indentations (2 ms)
>   ✕ works with crlf new lines (1 ms)
>   ✕ works with CDATA (1 ms)
>   ✕ handles the isJavaScriptMIMEType option (1 ms)
>   ✕ keeps empty lines after the last html tags
>   ✕ handles empty input
>   ✕ handles self closing script tags in xhtml mode (1 ms)
>   ✕ skips script with src attributes (1 ms)
>   indent option
>     ✕ absolute indent with spaces (2 ms)
>     ✕ relative indent with spaces (1 ms)
>     ✕ absolute indent with tabs (1 ms)
>     ✕ relative indent with tabs (1 ms)
> 
>   ● extract simple javascript
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `extract simple javascript 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "var foo = 1;",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:35:3)
> 
>   ● extract indented javascript
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `extract indented javascript 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "var foo = 1;
>       ",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:45:3)
> 
>   ● extract javascript with first line next to the script tag
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `extract javascript with first line next to the script tag 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "var foo = 1;
>       var baz = 1;
>       ",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:57:3)
> 
>   ● extract javascript with last line next to the script tag
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `extract javascript with last line next to the script tag 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "var foo = 1;
>       var baz = 1;",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:69:3)
> 
>   ● extract multiple script tags
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `extract multiple script tags 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "var foo = 1;
>       ",
>         "var bar = 1;
>       ",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:81:3)
> 
>   ● trim last line spaces
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `trim last line spaces 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "var foo = 1;
>       ",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:96:3)
> 
>   ● trim last line spaces ignoring CDATA
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `trim last line spaces ignoring CDATA 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "
>       var foo = 1;
>       ",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:108:3)
> 
>   ● extract script containing 'lower than' characters correctly (#1)
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `extract script containing 'lower than' characters correctly (#1) 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "if (a < b) { doit(); }
>       ",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:121:3)
> 
>   ● extract empty script tag (#7)
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `extract empty script tag (#7) 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:131:3)
> 
>   ● extracts a script tag with type=text/javascript
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `extracts a script tag with type=text/javascript 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "var foo = 1;",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:147:7)
> 
>   ● extracts a script tag with type=text/babel
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `extracts a script tag with type=text/babel 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "var foo = 1;",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:147:7)
> 
>   ● extracts a script tag with type=text/x-javascript
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `extracts a script tag with type=text/x-javascript 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "var foo = 1;",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:147:7)
> 
>   ● extracts a script tag with type=text/x-babel
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `extracts a script tag with type=text/x-babel 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "var foo = 1;",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:147:7)
> 
>   ● extracts a script tag with type=application/javascript
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `extracts a script tag with type=application/javascript 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "var foo = 1;",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:147:7)
> 
>   ● extracts a script tag with type=application/babel
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `extracts a script tag with type=application/babel 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "var foo = 1;",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:147:7)
> 
>   ● extracts a script tag with type=application/x-javascript
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `extracts a script tag with type=application/x-javascript 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "var foo = 1;",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:147:7)
> 
>   ● extracts a script tag with type=application/x-babel
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `extracts a script tag with type=application/x-babel 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "var foo = 1;",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:147:7)
> 
>   ● collects bad indentations
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `collects bad indentations 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "a;
>       a;
>        a;
>       ",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:159:3)
> 
>   ● indent option › absolute indent with spaces
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `indent option absolute indent with spaces 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     @@ -1,6 +1,6 @@
>     - Array [
>     + [
>         "
>           a;
>       a;
>       a;
>       ",
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:173:5)
> 
>   ● indent option › relative indent with spaces
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `indent option relative indent with spaces 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "a;
>         a;
>       a;
>       ",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:191:5)
> 
>   ● indent option › absolute indent with tabs
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `indent option absolute indent with tabs 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     @@ -1,6 +1,6 @@
>     - Array [
>     + [
>         "
>       		a;
>       a;
>       a;
>       ",
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:210:5)
> 
>   ● indent option › relative indent with tabs
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `indent option relative indent with tabs 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "a;
>       	a;
>       a;
>       ",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:228:5)
> 
>   ● works with crlf new lines
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `works with crlf new lines 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "foo;
>       bar;
>         baz;
>       ",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:248:3)
> 
>   ● works with CDATA
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `works with CDATA 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     @@ -1,6 +1,6 @@
>     - Array [
>     + [
>         "a;
> 
>       b;
> 
>       c;
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:256:3)
> 
>   ● handles the isJavaScriptMIMEType option
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `handles the isJavaScriptMIMEType option 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "a
>       ",
>         "b
>       ",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:270:3)
> 
>   ● keeps empty lines after the last html tags
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `keeps empty lines after the last html tags 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array [
>     + [
>         "a
>       ",
>       ]
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:291:3)
> 
>   ● handles empty input
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `handles empty input 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array []
>     + []
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:303:3)
> 
>   ● handles self closing script tags in xhtml mode
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `handles self closing script tags in xhtml mode 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array []
>     + []
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:309:3)
> 
>   ● skips script with src attributes
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `skips script with src attributes 1`
> 
>     - Snapshot  - 1
>     + Received  + 1
> 
>     - Array []
>     + []
> 
>       28 |     params.isJavaScriptMIMEType
>       29 |   )
>     > 30 |   expect(infos.code.map((code) => code.toString())).toMatchSnapshot()
>          |                                                     ^
>       31 |   expect(infos.badIndentationLines).toEqual(params.badIndentationLines || [])
>       32 | }
>       33 |
> 
>       at test (src/__tests__/extract.js:30:53)
>       at Object.<anonymous> (src/__tests__/extract.js:316:3)
> 
>  › 29 snapshots failed.
> PASS src/__tests__/plugin.js (5.097 s)
>   ✓ should extract and remap messages (147 ms)
>   ✓ should report correct line numbers with crlf newlines (4 ms)
>   ✓ should report correct eol-last message position (2 ms)
>   html/indent setting
>     ✓ should automatically compute indent when nothing is specified (156 ms)
>     ✓ should work with a zero absolute indentation descriptor (19 ms)
>     ✓ should work with a non-zero absolute indentation descriptor (10 ms)
>     ✓ should work with relative indentation descriptor (9 ms)
>     ✓ should report messages at the beginning of the file (37 ms)
>   html/report-bad-indent setting
>     ✓ should report under-indented code with auto indent setting (3 ms)
>     ✓ should report under-indented code with provided indent setting (8 ms)
>   xml support
>     ✓ consider .html files as HTML (3 ms)
>     ✓ can be forced to consider .html files as XML (4 ms)
>     ✓ consider .xhtml files as XML (4 ms)
>     ✓ can be forced to consider .xhtml files as HTML (3 ms)
>     ✓ removes white space at the end of scripts ending with CDATA (21 ms)
>     ✓ should support self closing script tags (3 ms)
>   lines-around-comment and multiple scripts
>     ✓ should not warn with lines-around-comment if multiple scripts (32 ms)
>   fix
>     ✓ should remap fix ranges (40 ms)
>     ✓ should fix errors (40 ms)
>     ✓ should fix errors in files with BOM (5 ms)
>     eol-last rule
>       ✓ should work with eol-last always (3 ms)
>       ✓ should work with eol-last never (7 ms)
>   reportUnusedDisableDirectives
>     ✓ reports unused disabled directives (34 ms)
>     ✓ doesn't report used disabled directives (5 ms)
>   html/javascript-mime-types
>     ✓ ignores unknown mime types by default (6 ms)
>     ✓ specifies a list of valid mime types (4 ms)
>     ✓ specifies a regexp of valid mime types (7 ms)
>   scope sharing
>     ✓ should export global variables between script scopes (24 ms)
>     ✓ should mark variable as used when the variable is used in another tag (46 ms)
>     ✓ should not be influenced by the ECMA feature 'globalReturn' (9 ms)
>     ✓ should not share the global scope if sourceType is 'module' (8 ms)
> 
> Snapshot Summary
>  › 29 snapshots failed from 1 test suite. Inspect your code changes or re-run jest with `-u` to update them.
> 
> Test Suites: 1 failed, 3 passed, 4 total
> Tests:       29 failed, 53 passed, 82 total
> Snapshots:   29 failed, 29 total
> Time:        6.3 s
> Ran all test suites.
> make[1]: *** [debian/rules:26: override_dh_auto_test] Error 1


The full build log is available from:
http://qa-logs.debian.net/2022/10/23/node-eslint-plugin-html_6.2.0-2_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221023;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221023&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