generator-jhipster: remap-istanbul break code coverage and CI

Overview of the issue

It’s not our problem but just to follow the problem and upgrade to the new version of: “karma-remap-istanbul”: “0.6.0”, “karma-sourcemap-loader”: “0.3.7”, When they solve it.

Motivation for or Use Case

Build from CI failed now with last version of source-map (7.0) and remap-istambul. 21 01 2018 18:48:53.449:ERROR [karma]: TypeError: sourceMap.originalPositionFor is not a function at getMapping (/home/travis/app/node_modules/remap-istanbul/src/getMapping.js:19:26) at getMappingResolved (/home/travis/app/node_modules/remap-istanbul/src/CoverageTransformer.js:171:20) at remapBranch (/home/travis/app/node_modules/remap-istanbul/src/remapBranch.js:6:19) at /home/travis/app/node_modules/remap-istanbul/src/CoverageTransformer.js:181:17 at Array.forEach (<anonymous>) at CoverageTransformer.addFileCoverage (/home/travis/app/node_modules/remap-istanbul/src/CoverageTransformer.js:177:39) at /home/travis/app/node_modules/remap-istanbul/src/CoverageTransformer.js:235:10 at Array.forEach (<anonymous>) at CoverageTransformer.addCoverage (/home/travis/app/node_modules/remap-istanbul/src/CoverageTransformer.js:233:5) at /home/travis/app/node_modules/remap-istanbul/src/remap.js:34:7 at Array.forEach (<anonymous>) at remap (/home/travis/app/node_modules/remap-istanbul/src/remap.js:33:11) at KarmaRemapIstanbul.onRunComplete (/home/travis/app/node_modules/karma-remap-istanbul/index.js:58:23) at Server.<anonymous> (/home/travis/app/node_modules/karma/lib/events.js:13:22) at emitTwo (events.js:131:20) at Server.emit (events.js:214:7)

Reproduce the error

launch yarn test

Related issues

https://github.com/SitePen/remap-istanbul/issues/160

Suggest a Fix

wait new version and upgrade to it

JHipster Version(s)

NA

JHipster configuration

NA

Entity configuration(s) entityName.json files generated in the .jhipster directory

NA

Browsers and Operating System

NA

  • Checking this box is mandatory (this is just to show you read everything)

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (17 by maintainers)

Commits related to this issue

Most upvoted comments

If they don’t fix it quickly, we can use package.json resolution to fix sub dependency. “resolutions”: { “source-map”: “0.6.1” }