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

Expose Total-test files via add-test event to jest-reporter #31

Closed
sauravhiremath opened this issue Jul 30, 2020 · 2 comments
Closed

Expose Total-test files via add-test event to jest-reporter #31

sauravhiremath opened this issue Jul 30, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@sauravhiremath
Copy link
Member

🚀 Feature Proposal

Currently we can view tests progress for Test-suites only.

Expose the length of DescribeBlock.children to get the total-test-files added.

jestjs#10227 (comment)

Example

Previous

image

Now

image

Test-plan

  • Add jest-circus dependency to jest-reporters
  • New dependency is introduced, as currently jest-reporter only displays results of tests and test-suites.
    Total-tests added to DescribeBlock are not part of @jest/test-result, hence the extra dep
  • Use sendMessageToJest to emit DescribeBlock.children from add-test event to jest-reporter
@sauravhiremath sauravhiremath added the enhancement New feature or request label Jul 30, 2020
@sauravhiremath sauravhiremath self-assigned this Jul 30, 2020
@sauravhiremath sauravhiremath changed the title Expose Total-test files collected via add-test event to jest-reporter Expose Total-test files via add-test event to jest-reporter Jul 30, 2020
@sauravhiremath
Copy link
Member Author

Closing as feature has been merged to main project

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant