murashit_codex-panel/tests/features/chat/ui/message-stream/setup.ts
2026-05-31 11:59:54 +09:00

14 lines
399 B
TypeScript

import { installObsidianDomShims } from "../../../../support/dom";
import { beforeEach } from "vitest";
(globalThis as typeof globalThis & { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
installObsidianDomShims();
beforeEach(() => {
window.requestAnimationFrame = (callback) => {
callback(0);
return 0;
};
window.cancelAnimationFrame = () => undefined;
});