Skip to content

Commit cf01615

Browse files
committed
fix(e2e): fix TypeScript error in read-file.test.ts
- Fix type mismatch where toolResult could be undefined but was typed as string | null - Add proper null fallback for resultMatch[1]
1 parent 2171183 commit cf01615

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/vscode-e2e/src/suite/tools/read-file.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ suite("Roo Code read_file Tool", function () {
178178
resultMatch = requestData.request.match(/Result:\s*\n([\s\S]+?)(?:\n\n|$)/)
179179
}
180180
if (resultMatch) {
181-
toolResult = resultMatch[1]
181+
toolResult = resultMatch[1] || null
182182
console.log("Extracted tool result:", toolResult)
183183
} else {
184184
console.log("Could not extract tool result from request")

0 commit comments

Comments
 (0)