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

fix: add missing property to deserializeRunnable #103436

Merged
merged 1 commit into from Jul 30, 2020

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Jul 27, 2020

This PR fixes an issue present when running non-default Mocha reporters, including JSON.

Non-default reporters expect to see a test.currentRetry function when deserializing, and it was not added in deserializeRunnable which caused it to error with test.currentRetry is not a function.

Now, the following:

./scripts/test.sh --reporter=json "Unit Tests"

will produce the correct output in the expected JSON format.

cc @deepak1556

@joaomoreno joaomoreno added this to the July 2020 milestone Jul 30, 2020
@joaomoreno joaomoreno merged commit c1f44f4 into microsoft:master Jul 30, 2020
@joaomoreno
Copy link
Member

Thanks!

@codebytere codebytere deleted the fix-json-reporter branch July 30, 2020 15:31
@github-actions github-actions bot locked and limited conversation to collaborators Sep 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants