Skip to content

Make __undefined__ processing recursive#10

Merged
han4wluc merged 1 commit intomainfrom
feature/recursive-undefined-processing
Nov 23, 2025
Merged

Make __undefined__ processing recursive#10
han4wluc merged 1 commit intomainfrom
feature/recursive-undefined-processing

Conversation

@han4wluc
Copy link
Copy Markdown
Contributor

@han4wluc han4wluc commented Nov 23, 2025

Problem

Previously, undefined only worked for top-level values in test assertions. Nested structures like { prop: __undefined__ } would not convert the string to actual undefined values.

Solution

  • Extract processUndefined() function to utils.js for reuse
  • Apply recursive processing to all test case outputs, execution outputs, and assertions
  • Remove duplicate undefined processing in mockResolver.js

Changes

  • Updated test cases in examples/undefined.test.yaml to verify nested functionality
  • All existing tests continue to pass (backward compatible)
  • New capabilities:
    • Objects: { prop: __undefined__, nested: { value: __undefined__ } }
    • Arrays: [1, __undefined__, { nested: __undefined__ }]
    • Method executions: out: { result: __undefined__ }
    • Property assertions: value: __undefined__

@han4wluc han4wluc merged commit 7d21f67 into main Nov 23, 2025
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.

1 participant