Skip to content

Compare object keys in TypeScript test helper - #872

Merged
mristin merged 1 commit into
mainfrom
mristin/Compare-object-keys-in-TypeScript-tests
Oct 30, 2026
Merged

mristin merged 1 commit into
mainfrom
mristin/Compare-object-keys-in-TypeScript-tests

Conversation

@mristin

@mristin mristin commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

By mistake, checkJsonablesEqual in the generated TypeScript tests collected the keys of the obtained object from the expected one (Object.keys(expected).filter(...)), so an extra key in the output went unnoticed. We collect them now from Object.keys(got), and report a null or a non-object where an object or an iterable was expected, instead of throwing.

By mistake, ``checkJsonablesEqual`` in the generated TypeScript tests
collected the keys of the obtained object from the expected one
(``Object.keys(expected).filter(...)``), so an extra key in the output
went unnoticed. We collect them now from ``Object.keys(got)``, and
report a ``null`` or a non-object where an object or an iterable was
expected, instead of throwing.
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 41066892281

Coverage remained the same at 90.233%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 51429
Covered Lines: 46406
Line Coverage: 90.23%
Coverage Strength: 2.71 hits per line

💛 - Coveralls

@mristin
mristin merged commit 50e4dc6 into main Oct 30, 2026
5 checks passed
@mristin
mristin deleted the mristin/Compare-object-keys-in-TypeScript-tests branch October 30, 2026 15:54
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