在我的module.ts文件中,我如下导入了我自己的库'ImportFileFeedModule'
@NgModule({
imports: [CommonModule,MatDialogModule,ImportFileFeedModule,MatIconModule],
declarations: [DialogFileComponent]
})
在导入的模块中运行覆盖率报告文件时,也会显示在覆盖率报告中。
我的业力配置如下
config.set({
...baseConfig,
coverageIstanbulReporter: {
...baseConfig.coverageIstanbulReporter,
dir: join(__dirname, '../../../coverage/libs/widget/dialog-file-import')
},
htmlReporter: {
...baseConfig.htmlReporter,
outputDir: 'karma_html/libs/widget/dialog-file-import', // where to put the reports
reportName: 'report-summary-filename', // report summary filename; browser info by default
}
});