◐ Shell
clean mode source ↗

Add comprehensive ConvertTo-Json depth and multilevel composition tests by yotsuda · Pull Request #26744 · PowerShell/PowerShell

@iSazonov iSazonov added the CL-Test

Indicates that a PR should be marked as a test change in the Change Log

label

Feb 6, 2026

iSazonov

yotsuda added a commit to yotsuda/PowerShell that referenced this pull request

Feb 6, 2026

iSazonov

iSazonov

@iSazonov iSazonov added the Approved-LowRisk

Indicate a PR has been approved and can be merged after a quick review of another maintainer.

label

Feb 6, 2026
…o-Json

Add 34 new Pester tests covering:
- Depth parameter basic behavior (default and explicit depth values)
- Depth truncation with arrays and hashtables
- Depth truncation string representations
- Multilevel compositions (Array/Dictionary/PSCustomObject/Class)
- Complex nested mixed type structures
- Pipeline vs InputObject behavior

This is Phase 4 of the test plan from PR PowerShell#26639.

Co-Authored-By: Claude <noreply@anthropic.com>
- Add truncation test for PowerShell class at Depth limit
- Update all Phase 4 tests to verify both Pipeline and InputObject
- Remove dedicated Pipeline vs InputObject Context

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

daxian-dbw

@yotsuda yotsuda deleted the add-convertto-json-depth-multilevel-tests branch

February 10, 2026 02:36

JustinGrote pushed a commit to JustinGrote/PowerShell that referenced this pull request

Jun 2, 2026