You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to propose to have a configuration option for passing any arbirary data? Something like JEST_HTML_REPORTER_EXTRA_DATA
My specific case for this option: during CI/CD pipeline there is some data that I would like to display in the report. Currently as a workaround I set the JSON string value to JEST_HTML_REPORTER_PAGE_TITLE and then using CSS hide the title. From there I can parse JSON string using JavaScript and use it for displaying extra data.
I would be happy to contribute and implement it if that sounds reasonable to have? Thanks!
The text was updated successfully, but these errors were encountered:
Great idea.
I think this could be doable indeed, perhaps if you were to integrate it with the boilerplate option.
Right now the user can provide their own HTML boilerplate where using {jesthtmlreporter-content} will be replaced with the test results.
I would probably go for a key-value (i.e boilerplateData) approach where you could enter 0..n entries where the key (inside brackets) would eventually be replaced with the provided value within the boilerplate. This way we would keep it dynamic for people interested in adding multiple entries.
Hey!
I would like to propose to have a configuration option for passing any arbirary data? Something like
JEST_HTML_REPORTER_EXTRA_DATA
My specific case for this option: during CI/CD pipeline there is some data that I would like to display in the report. Currently as a workaround I set the JSON string value to
JEST_HTML_REPORTER_PAGE_TITLE
and then using CSS hide the title. From there I can parse JSON string using JavaScript and use it for displaying extra data.I would be happy to contribute and implement it if that sounds reasonable to have? Thanks!
The text was updated successfully, but these errors were encountered: