The GitHub Actions job "Required Checks" on texera.git/main has succeeded. Run started by GitHub user github-merge-queue[bot] (triggered by github-merge-queue[bot]).
Head commit for run: bde8e88971c33b3e3948f96ef8d86e68b7713962 / Matthew B. <[email protected]> test(frontend): add unit tests for datasetVersionFileTree (#6651) ### What changes were proposed in this PR? - Add `frontend/src/app/common/type/datasetVersionFileTree.spec.ts`, a new Vitest spec for the dataset version file tree helpers, which previously had no dedicated unit tests. - Cover getFullPathFromDatasetFileNode and getRelativePathFromDatasetFileNode (three-segment strip, empty-segment filtering, and the <=3 returns empty case). - Cover recursive getPathsUnderOrEqualDatasetFileNode for file, nested-dir, and empty-dir nodes. - Cover DatasetVersionFileTreeManager: nested build, add idempotency, siblings, and removal by identity and by path including subtree, absent, synthetic-root guard, and double-removal no-ops. ### Any related issues, documentation, discussions? Closes: #6650 ### How was this PR tested? - Run: `cd frontend && node --max-old-space-size=8192 ./node_modules/nx/dist/bin/nx.js test gui --watch=false --include=src/app/common/type/datasetVersionFileTree.spec.ts`, expect all 22 tests passing. - Test-only change; no production code is modified. ### Was this PR authored or co-authored using generative AI tooling? Co-authored with Claude Opus 4.8 in compliance with ASF --------- Signed-off-by: Matthew B. <[email protected]> Co-authored-by: Copilot Autofix powered by AI <[email protected]> Report URL: https://github.com/apache/texera/actions/runs/29785085829 With regards, GitHub Actions via GitBox
