jest-html-reporters icon indicating copy to clipboard operation
jest-html-reporters copied to clipboard

[Feature] Export a function that generates html report based on test results stored in different folders in a mono-repo

Open mhdSid opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. I'm currently using NX in a mono-repo with packages directory. Each folder inside the packages has it's own isolated Jest config, and it's where the test results folder is stored.

After running tests for all folders in the packages directory, we need to combine the test results so that we can have one final HTML file for all the test results within the packages.

Describe the solution you'd like Export a function called mergeTestResultMap that accepts testResultMap as a parameter where testResultMap is similar to the JSON output of Jest.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

mhdSid avatar Mar 01 '23 23:03 mhdSid