[Pkg-javascript-devel] Bug#1011973: node-webpack-sources: autopkgtest failure TypeError: addMapping is not a function

Pirate Praveen praveen at onenetbeyond.org
Sat May 28 09:25:31 BST 2022


On Sat, 28 May 2022 13:26:50 +0530 Pirate Praveen 
<praveen at onenetbeyond.org> wrote:
 > Autopkgtest is failing as it needs node-source-map 0.7 and that is 
blocked by mismatch in embedded and built from source wasm file.
 >
 > This is blocking webpack 5 migration to testing.
 >
 > 
https://ci.debian.net/data/autopkgtest/testing/amd64/n/node-webpack-sources/22182585/log.gz

with node-source-map 0.7 built from salsa master branch, there is only 
1 failure. 26 tests were failing earlier with node-source-map 0.6.

FAIL test/ReplaceSource.js
  ● ReplaceSource › should produce correct source map

    TypeError: consumer.eachMapping is not a function

      88 | });
      89 |
    > 90 | consumer.eachMapping(function (mapping) {
         | ^
      91 | mappingCount++;
      92 |
      93 | validateMapping(mapping);

      at validate 
(debian/tests/test_modules/sourcemap-validator/index.js:90:12)
      at Object.<anonymous> (test/ReplaceSource.js:206:3)

PASS test/package-entry.js
PASS test/SizeOnlySource.js

Test Suites: 1 failed, 9 passed, 10 total
Tests: 1 failed, 59 passed, 60 total
Snapshots: 16 passed, 16 total
Time: 3.755 s
Ran all test suites.



More information about the Pkg-javascript-devel mailing list