BlueSky & more on desktop
lazurite.stormlightlabs.org/
tauri
rust
typescript
bluesky
appview
atproto
solid
1// fallow-ignore-file unused-file
2
3import { cleanup } from "@solidjs/testing-library";
4import "@testing-library/jest-dom/vitest";
5import { Dynamic } from "solid-js/web";
6import { afterEach, vi } from "vitest";
7
8vi.mock(
9 "@tauri-apps/plugin-log",
10 () => ({ error: vi.fn(), warn: vi.fn(), info: vi.fn(), debug: vi.fn(), trace: vi.fn() }),
11);
12
13vi.mock(
14 "solid-motionone",
15 () => ({
16 Motion: new Proxy({}, {
17 get: (_, property) => (props: { children?: unknown }) => Dynamic({ ...props, component: String(property) }),
18 }),
19 Presence: (props: { children?: unknown }) => props.children as unknown,
20 }),
21);
22
23Object.defineProperty(globalThis, "scrollTo", { value: vi.fn(), writable: true });
24
25afterEach(cleanup);