Skip to content

Commit 623fa2a

Browse files
authored
test: update list-files test for fixed hidden files bug (#6261)
test: update list-files test to reflect fixed hidden files bug
1 parent 91c21a1 commit 623fa2a

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

apps/vscode-e2e/src/suite/tools/list-files.test.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ This directory contains various files and subdirectories for testing the list_fi
242242
// Verify the tool returned the expected files (non-recursive)
243243
assert.ok(listResults, "Tool execution results should be captured")
244244

245-
// Check that expected root-level files are present (excluding hidden files due to current bug)
246-
const expectedFiles = ["root-file-1.txt", "root-file-2.js", "config.yaml", "README.md"]
245+
// Check that expected root-level files are present (including hidden files now that bug is fixed)
246+
const expectedFiles = ["root-file-1.txt", "root-file-2.js", "config.yaml", "README.md", ".hidden-file"]
247247
const expectedDirs = ["nested/"]
248248

249249
const results = listResults as string
@@ -255,13 +255,9 @@ This directory contains various files and subdirectories for testing the list_fi
255255
assert.ok(results.includes(dir), `Tool results should include directory ${dir}`)
256256
}
257257

258-
// BUG: Hidden files are currently excluded in non-recursive mode
259-
// This should be fixed - hidden files should be included when using --hidden flag
260-
console.log("BUG DETECTED: Hidden files are excluded in non-recursive mode")
261-
assert.ok(
262-
!results.includes(".hidden-file"),
263-
"KNOWN BUG: Hidden files are currently excluded in non-recursive mode",
264-
)
258+
// Verify hidden files are now included (bug has been fixed)
259+
console.log("Verifying hidden files are included in non-recursive mode")
260+
assert.ok(results.includes(".hidden-file"), "Hidden files should be included in non-recursive mode")
265261

266262
// Verify nested files are NOT included (non-recursive)
267263
const nestedFiles = ["nested-file-1.md", "nested-file-2.json", "deep-nested-file.ts"]

0 commit comments

Comments
 (0)