Skip to content

Add a link to the test file #221

@nissy-dev

Description

@nissy-dev

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions