refactor: consume Commonlib as a package

This commit is contained in:
vorotamoroz committed 2026-07-17 11:13:16 +00:00
1 parent 6475d32769
commit a721d3b602
665 files changed
+3438 -31592

No files matched your search

@@ -1,4 +1,5 @@
import { describe, expect, it, vi } from "vitest";
import { createServiceContext } from "@vrtmrz/livesync-commonlib/context";
vi.mock("@/features/P2PSync/P2PReplicator/P2PReplicatorPaneView", () => ({
P2PReplicatorPaneView: class {},
@@ -19,6 +20,7 @@ describe("useP2PReplicatorUI commands", () => {
const runFiniteReplicationActivity = vi.fn(async (task: () => unknown) => await task());
const host = {
services: {
context: createServiceContext(),
API: {
showWindow: vi.fn(async () => undefined),
registerWindow: vi.fn(),