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: dangling commas in json results #361

Merged
merged 3 commits into from
Apr 12, 2024
Merged

Conversation

peternhale
Copy link
Collaborator

What does this PR do?

fixes a bug that was introduced when making the change to streams for output generation

What issues does this PR fix or reference?

@W-15471840@
#5534

Functionality Before

unneeded commas were being inserted into json results

Functionality After

Unneeded commas removed

@peternhale peternhale requested a review from daphne-sfdc April 12, 2024 12:27
Copy link
Contributor

@daphne-sfdc daphne-sfdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Pete for fixing this dangling commas issue!

I was able to confirm that there are no more dangling commas in the test-result.json file that is generated after Apex tests are run, and the code coverage highlighting is working again.

QE doc here: https://salesforce.quip.com/4LbOAXV06fbm

Just some nits and then this is ready to be merged.

test/streaming/testResultStringifyStream.test.ts Outdated Show resolved Hide resolved
peternhale and others added 2 commits April 12, 2024 10:02
@peternhale peternhale requested a review from daphne-sfdc April 12, 2024 16:41
Copy link
Contributor

@daphne-sfdc daphne-sfdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved! 🎉

The testResultStringifyStream.test.ts test now passes with 100% code coverage.

@peternhale peternhale merged commit d82f867 into main Apr 12, 2024
9 checks passed
@peternhale peternhale deleted the phale/W-15471840-no-dangles branch April 12, 2024 16:48
gilgourevitch pushed a commit to gilgourevitch/salesforcedx-apex that referenced this pull request Jun 6, 2024
* fix: dngling commas in json results

@W-15471840@

* Update test/streaming/testResultStringifyStream.test.ts

Co-authored-by: Daphne Yang <139700604+daphne-sfdc@users.noreply.github.com>

* chore: update tests date to cover per class coverage transform

---------

Co-authored-by: Daphne Yang <139700604+daphne-sfdc@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants