mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
fix(tests): add missing mocks for list-files tests
This commit is contained in:
parent
299bce8cff
commit
17d723a539
1 changed files with 12 additions and 0 deletions
|
|
@ -3,6 +3,18 @@ import * as path from "path"
|
|||
import { listFiles } from "../list-files"
|
||||
import * as childProcess from "child_process"
|
||||
|
||||
vi.mock("child_process")
|
||||
vi.mock("fs")
|
||||
vi.mock("vscode", () => ({
|
||||
env: {
|
||||
appRoot: "/mock/vscode/app/root",
|
||||
},
|
||||
}))
|
||||
|
||||
vi.mock("../../ripgrep", () => ({
|
||||
getBinPath: vi.fn().mockResolvedValue("/mock/path/to/rg"),
|
||||
}))
|
||||
|
||||
vi.mock("../list-files", async () => {
|
||||
const actual = await vi.importActual("../list-files")
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue