mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-08 15:51:06 +00:00
test(msteams): avoid loading graph module in member tests
This commit is contained in:
@@ -7,10 +7,8 @@ const mockState = vi.hoisted(() => ({
|
||||
fetchGraphJson: vi.fn(),
|
||||
}));
|
||||
|
||||
vi.mock("./graph.js", async (importOriginal) => {
|
||||
const actual = await importOriginal<typeof import("./graph.js")>();
|
||||
vi.mock("./graph.js", () => {
|
||||
return {
|
||||
...actual,
|
||||
resolveGraphToken: mockState.resolveGraphToken,
|
||||
fetchGraphJson: mockState.fetchGraphJson,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user