first commit
This commit is contained in:
14
xterminal/tests/setup.ts
Normal file
14
xterminal/tests/setup.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { beforeAll } from "vitest";
|
||||
|
||||
// Mock scrollTo for jsdom
|
||||
Object.defineProperty(HTMLElement.prototype, "scrollTo", {
|
||||
writable: true,
|
||||
value: function (x: number, y: number) {
|
||||
this.scrollTop = y;
|
||||
this.scrollLeft = x;
|
||||
}
|
||||
});
|
||||
|
||||
beforeAll(() => {
|
||||
// Any global setup
|
||||
});
|
||||
Reference in New Issue
Block a user