def test_streaming_output(windows_bash_session):
    """Test handling of streaming output from commands."""
    # Command that produces output incrementally
    command = """
    1..3 | ForEach-Object {
        Write-Output "Line $_"
        Start-Sleep -Milliseconds 100
    }
    """
    action = CmdRunAction(command=command)
    result = windows_bash_session.execute(action)

    assert isinstance(result, CmdOutputObservation)
    assert 'Line 1' in result.content
    assert 'Line 2' in result.content
    assert 'Line 3' in result.content
    assert result.exit_code == 0
Test handling of streaming output from commands.
tests/unit/test_windows_bash.py