Hazyzh/jest-html-reporters

Add a link to the test file

nissy-dev opened this issue · 1 comments

Is your feature request related to a problem? Please describe.

The Details Table is very useful, but sometimes we want to see not only a path of test files but also a GitHub/Gitlab link of them. If there is a link on each row, we could confirm the test code easily.

Describe the solution you'd like

I want to add urlForTestFiles option, and if user set this value, the Details Table shows an icon link to each rows. The link is constructed by joining urlForTestFiles (ex: https://github.com/Hazyzh/jest-html-reporters/blob/master) and relativePath (ex: /src/utils/index.test.js) for each tests

The image

SS_ 2022-06-26 14 55 40

Describe alternatives you've considered
No.

Additional context
No.

Neat!