Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a link to the test file #221

Closed
nissy-dev opened this issue Jun 26, 2022 · 1 comment · Fixed by #222
Closed

Add a link to the test file #221

nissy-dev opened this issue Jun 26, 2022 · 1 comment · Fixed by #222
Assignees
Labels
enhancement New feature or request

Comments

@nissy-dev
Copy link
Contributor

nissy-dev commented Jun 26, 2022

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.

@smith558
Copy link

Neat!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants