mirror of
https://github.com/murashit/codex-panel.git
synced 2026-07-22 06:57:10 +00:00
14 lines
399 B
TypeScript
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;
|
|
});
|