chore: fix TS alias resolution and SVG mocking for test setup
This commit is contained in:
@@ -38,6 +38,8 @@
|
||||
"src/**/*.js",
|
||||
"src/**/*.svelte",
|
||||
"src/**/*.d.ts",
|
||||
"vitest.config*.ts",
|
||||
"vitest.setup*.ts",
|
||||
"vitest.types.d.ts"
|
||||
],
|
||||
"exclude": [
|
||||
|
||||
@@ -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