feat: move to unimport-icons

@lucide icons works very slow in barrel import, so i move to
unimport and use lucide icons
This commit is contained in:
2026-02-08 20:20:46 +05:00
parent 4a6e459407
commit 0f905bbc20
15 changed files with 279 additions and 64 deletions
+1 -9
View File
@@ -1,11 +1,3 @@
import "@testing-library/jest-dom/vitest";
import { vi } from "vitest";
import "vitest-canvas-mock";
import "web-animations-js";
declare global {
var jest: typeof vi;
}
globalThis.jest = vi;
await import("jest-canvas-mock");
@@ -1,13 +1,9 @@
import ImageManager from "$components/image/ImageManager.svelte";
import { render, screen } from "@testing-library/svelte";
import { describe, expect, it } from "vitest";
import { render } from "@testing-library/svelte";
import { describe, it } from "vitest";
describe("ImageManager.svelte", () => {
it("should render without crashing", () => {
render(ImageManager);
});
});
+2 -6
View File
@@ -1,10 +1,8 @@
import { render, screen, fireEvent } from "@testing-library/svelte";
import { describe, expect, it } from "vitest";
import Alignment from "$components/ui/Alignment.svelte";
import { render } from "@testing-library/svelte";
import { describe, it } from "vitest";
describe("Alignment.svelte", () => {
it("should render without crashing", () => {
render(Alignment, {
props: {
@@ -12,6 +10,4 @@ describe("Alignment.svelte", () => {
},
});
});
});