fix tests on linux?
This commit is contained in:
parent
67c4f10679
commit
66a7c2e62f
1 changed files with 6 additions and 3 deletions
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue