test(msteams): avoid loading graph module in member tests

This commit is contained in:
Vincent Koc 2026-04-03 20:48:39 +09:00
parent d9aa88dd6c
commit b410c5434c
1 changed files with 1 additions and 3 deletions

View File

@ -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,
};