fix tests on linux?

This commit is contained in:
Nate 2025-07-19 16:39:27 -07:00
parent 67c4f10679
commit 66a7c2e62f

View file

@ -77,17 +77,20 @@ export const mockAssistant: AssistantUnrolled = {
mcpServers: [],
} as any;
// Mock glob function
// Mock glob function with files that actually exist in the repository
jest.mock("glob", () => ({
glob: jest
.fn<any>()
.mockResolvedValue([
".env.example",
".gitignore",
"AGENTS.md",
"CHANGELOG.md",
"README.md",
"package.json",
"src/index.ts",
"src/types.ts",
"LICENSE",
"CHANGELOG.md",
"test-file.txt",
]),
}));
@ -110,4 +113,4 @@ describe("TUIChat setup", () => {
expect(createProps).toBeDefined();
expect(mockAssistant).toBeDefined();
});
});
});