chore: fix TS alias resolution and SVG mocking for test setup
This commit is contained in:
@@ -17,7 +17,7 @@ Element.prototype.animate = vi.fn().mockReturnValue({
|
||||
});
|
||||
|
||||
// jsdom lacks SVG geometry methods
|
||||
SVGElement.prototype.getTotalLength = vi.fn(() => 0);
|
||||
(SVGElement.prototype as any).getTotalLength = vi.fn(() => 0);
|
||||
|
||||
// Robust localStorage mock for jsdom environment
|
||||
const localStorageMock = (() => {
|
||||
|
||||
Reference in New Issue
Block a user