Closed fanksy closed 5 months ago
I am not familiar with Electron. Could you provide a minimal repo to reproduce it locally? I'm not sure if Electron can provide v8 coverage data, what is your specific use case?
I am not familiar with Electron. Could you provide a minimal repo to reproduce it locally? I'm not sure if Electron can provide v8 coverage data, what is your specific use case?
you can clone a repository from https://github.com/electron-react-boilerplate/electron-react-boilerplate, then adding code below in main.ts
import MCR, { CoverageReportOptions } from 'monocart-coverage-reports';
const reportOptions: CoverageReportOptions = {};
MCR(reportOptions);
run the command
npm run package
last, opening the app in release dir
I am not familiar with Electron. Could you provide a minimal repo to reproduce it locally? I'm not sure if Electron can provide v8 coverage data, what is your specific use case?
This just initializes the reporting options, no data collection will be triggered
@fanksy please try new version monocart-coverage-reports@2.8.3
, it should be fixed.
A CLI library can not be initialized in Electron, but I don't think it is necessary to support CLI in Electron, so I separated that library to let the program continue work.
main.ts
After packaging, an error occurs when opening.