Skip to content

fix: add missing property to deserializeRunnable#103436

Merged
joaomoreno merged 1 commit intomicrosoft:masterfrom
codebytere:fix-json-reporter
Jul 30, 2020
Merged

fix: add missing property to deserializeRunnable#103436
joaomoreno merged 1 commit intomicrosoft:masterfrom
codebytere:fix-json-reporter

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.

2 participants