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(testResult): transform undefined to null when serializing test result #6380

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

twelvemo
Copy link
Collaborator

@twelvemo twelvemo commented Aug 15, 2024

What this PR does / why we need it:

When serializing test result data, we can get an undefined value for some optional keys e.g. diagnosticErrorMsg. This will result in the reported error. Fixing this by transforming it to null in serialization and back to undefined in deserialization.

Which issue(s) this PR fixes:

Fixes #5561

Special notes for your reviewer:

@twelvemo twelvemo requested a review from stefreak August 15, 2024 10:31
@stefreak stefreak added this pull request to the merge queue Aug 15, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 15, 2024
@vvagaytsev vvagaytsev added this pull request to the merge queue Aug 15, 2024
Merged via the queue into main with commit 883df51 Aug 15, 2024
40 checks passed
@vvagaytsev vvagaytsev deleted the fix-undefined-data-in-test-result branch August 15, 2024 12:20
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.

0.13: [Bug]: ERR_INVALID_ARG_TYPE when garden tries to store test results when data is undefined
3 participants