Assuming that you upgraded your project to Angular 13. When I replaced karma-project-name
with karma-coverage
it works fine.
In karma.conf.js
, you should replace coverageIstanbulReporter
with coverageReporter
as follows:
coverageReporter: {
dir: require('path').join(__dirname, './coverage/<your-project-name>'),
subdir: '.',
reports: [
{ type: 'html' },
{ type: 'lcovonly' },
{ type: 'text-summary' }
]
},
In this case the Travis parser can parse this and actually go ahead and deploy a build. This should be the fix, and let your company go back to normal usage. These are nuances and I recommend you watching out for these things in the future and/or reading the Karma documentation.
In the after_script:
part of your .travis.yml
, it would also make more sense to probably run tail -f
instead of cat
. This is also mostly true for React, as that’s what I mainly program in (React and Ruby.)