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:
+1
-9
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
@@ -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", () => {
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user