Skip to content

[data] Document and test the file watcher truncation path #3253

Description

@tmdeveloper007

Description

A previous fix (#2985) added error handling for file truncation in the data package watcher. The fix exists but packages/data/src/watcher.ts lacks an inline comment explaining the truncation recovery strategy, and no unit test covers this path.

Expected behavior

Add a comment block and a unit test that simulates truncation mid-stream.

Priority

low

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions