#13848: fix(test): normalize paths in source-display test for windows
size: XS
Cluster:
Windows Compatibility Fixes
Fixes Windows CI failure in `src/plugins/source-display.test.ts` by normalizing backslashes to forward slashes before assertion. This test was failing on Windows runners because `path.relative` produces OS-specific separators.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR updates `src/plugins/source-display.test.ts` to normalize path separators (`\\` → `/`) before asserting expected relative plugin source strings. The intent is to make the test output stable across OSes (Windows `path.relative` uses backslashes).
In the current codebase, the production implementation already normalizes `path.relative(...)` results to forward slashes in `src/plugins/source-display.ts` (via `rel.replaceAll("\\", "/")`), so these extra normalizations in the test are redundant but harmless. No functional behavior changes are introduced outside the test, and there are no merge-blocking issues found.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk.
- Change is limited to test assertions and uses a supported string operation; production code already normalizes path separators so the change is redundant but not harmful.
- src/plugins/source-display.test.ts
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#23480: fix(test): use path.join for cross-platform XDG path assertions in ...
by hydro13 · 2026-02-22
80.8%
#23142: fix(test): Windows CI — use path.join for XDG path assertions in qm...
by ihsanmokhlisse · 2026-02-22
79.4%
#13666: test: make docker-setup Bash path portable on Windows
by rmdmattingly · 2026-02-10
79.2%
#7507: test(ci): make tests cross-platform (Windows) + add basic sanitizat...
by ThinkIbrokeIt · 2026-02-02
79.0%
#10714: fix: handle Windows PATH case-sensitivity in node register invoke
by Yida-Dev · 2026-02-06
78.0%
#10708: fix: handle Windows PATH case-sensitivity in exec environment
by Yida-Dev · 2026-02-06
77.6%
#11529: fix(wizard): strip shell-style backslash escapes from workspace paths
by mcaxtr · 2026-02-07
76.7%
#22910: fix(browser): resolve symlinks in upload path validation
by erdinccurebal · 2026-02-21
75.8%
#11979: fix: Change rootDir to project root to allow UI compilation
by fastroc · 2026-02-08
75.1%
#22178: test(web): allow fixture roots in media local file tests
by Kansodata · 2026-02-20
75.1%