We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 299bce8 commit 17d723aCopy full SHA for 17d723a
src/services/glob/__tests__/list-files.spec.ts
@@ -3,6 +3,18 @@ import * as path from "path"
3
import { listFiles } from "../list-files"
4
import * as childProcess from "child_process"
5
6
+vi.mock("child_process")
7
+vi.mock("fs")
8
+vi.mock("vscode", () => ({
9
+ env: {
10
+ appRoot: "/mock/vscode/app/root",
11
+ },
12
+}))
13
+
14
+vi.mock("../../ripgrep", () => ({
15
+ getBinPath: vi.fn().mockResolvedValue("/mock/path/to/rg"),
16
17
18
vi.mock("../list-files", async () => {
19
const actual = await vi.importActual("../list-files")
20
return {
0 commit comments