Commit Graph
3 Commits
Author SHA1 Message Date
Zef Hemel 449c4da4c6 Implement YAML patching functionality and enhance tests
- Added `yaml.patch` syscall to apply patches to YAML strings using the new `applyPatches` function.
- Updated tests to cover a wider range of scenarios, including edge cases and preservation of comments and formatting.
- Refactored existing tests to utilize the new patching logic, ensuring comprehensive coverage of YAML operations.
2025-03-30 14:30:51 +02:00
Zef Hemel 8ab2c624e7 Lint fixes 2025-03-30 13:04:43 +02:00
Zef Hemel a0807b052f Add YAML patching tests and implement serialization logic
- Introduced comprehensive tests for applying minimal set key patches in YAML, covering various scenarios including scalar operations, adding new keys, list operations, and handling of empty values.
- Implemented serialization functions to convert JavaScript types to YAML format, ensuring proper handling of scalars, arrays, and objects.
- Enhanced the `applyMinimalSetKeyPatches` function to support patching of top-level keys while preserving comments and formatting.
2025-03-30 13:03:32 +02:00