mirror of https://github.com/openclaw/openclaw.git
test(msteams): avoid loading graph module in member tests
This commit is contained in:
parent
d9aa88dd6c
commit
b410c5434c
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue