fix(logging): handle mid-line streaming output in test logger and add streaming tests

This commit is contained in:
2026-01-19 20:32:56 +00:00
parent 286030a08d
commit 9ec2c8b6eb
5 changed files with 61 additions and 9 deletions

View File

@@ -1,5 +1,13 @@
# Changelog
## 2026-01-19 - 3.1.6 - fix(logging)
handle mid-line streaming output in test logger and add streaming tests
- Introduce isOutputMidLine flag to track when streaming output does not end with a newline
- Only prepend the visual prefix at the start of a line and append segments to the last buffered entry when mid-line
- Write consistent output to log files for both complete lines and raw streaming segments
- Add tests to exercise streaming behavior: test/tstest/test.gap-debug.ts and test/tstest/test.gap-debug2.ts
## 2026-01-19 - 3.1.5 - fix(tstest)
preserve streaming console output and correctly buffer incomplete TAP lines