Roo-Code/webview-ui/src/__tests__
Chiranjeevisantosh Madugundi 5db2062d0c
feat: show aggregated +/− line counts in FileChangesPanel header (#11618)
* feat: show aggregated +/− line counts in FileChangesPanel header

* feat(FileChangesPanel): show merged diff relative to final file state

* fix(webview): restrict readFileContent to paths inside the workspace

* fix: add workspace-boundary validation to readFileContent to prevent path traversal

* fix(tests): mock isPathOutsideWorkspace in readFileContent spec

* fix(tests): mock isPathOutsideWorkspace in readFileContent spec

* fix: use path.resolve/path.sep in readFileContent test mock for cross-platform compatibility

The isPathOutsideWorkspace mock used hardcoded Unix-style path comparisons
(/mock/workspace with forward slashes), which fails on Windows where
path.resolve() produces paths with drive letters (C:\mock\workspace\...).

Replace manual string normalization with path.resolve() and path.sep so the
mock behaves correctly on both Windows and Unix.

---------

Co-authored-by: Roo Code <roomote@roocode.com>
2026-02-19 23:22:20 -07:00
..
App.spec.tsx Add file changes panel per conversation (#11494) 2026-02-18 23:08:45 -07:00
command-autocomplete.spec.ts Move more types to @roo-code/types (for the cli) (#10583) 2026-01-09 11:59:06 -08:00
ContextWindowProgress.spec.tsx Revert "feat: Experiment: Show a bit of stats in Cloud tab to help users discover there's more in Cloud" (#8559) 2025-10-07 21:37:10 -04:00
ContextWindowProgressLogic.spec.ts Update the max-token calculation in model-params to use the shared logic (#5720) 2025-07-15 02:20:22 -04:00
ErrorBoundary.spec.tsx debug: Add ErrorBoundary component for better error handling (#5085) 2025-07-23 08:45:35 -04:00
fileChangesFromMessages.spec.ts Add file changes panel per conversation (#11494) 2026-02-18 23:08:45 -07:00
FileChangesPanel.spec.tsx feat: show aggregated +/− line counts in FileChangesPanel header (#11618) 2026-02-19 23:22:20 -07:00
SearchableSelect.spec.tsx feat: add ESC key handling for modes, API provider, and indexing settings popovers (#6175) 2025-07-28 23:04:23 -04:00
TelemetryClient.spec.ts feat: migrate PostHog client to ph.roocode.com (#9402) 2025-11-19 14:44:22 -05:00