MCPcopy Create free account
hub / github.com/Effect-TS/effect / mount

Function mount

packages/ui/native/test/KitControls.test.ts:81–88  ·  view source on GitHub ↗
(os: "ios" | "android" | "macos")

Source from the content-addressed store, hash-verified

79})
80
81const mount = async (os: "ios" | "android" | "macos") => {
82 const animated = FakeAnimated.make()
83 const mounted = await FakeFabric.mount(
84 (container) => Renderer.mount(Harness, {}, container),
85 { os, color, module: (name) => name.startsWith("NativeAnimated") ? animated.module : undefined }
86 )
87 return { ...mounted, animated }
88}
89
90describe("@effect/ui-native/kit controls", () => {
91 it("maps props, dispatches events, and restores rejected changes on macOS", async () => {

Callers 1

Calls 2

makeMethod · 0.65
mountMethod · 0.65

Tested by

no test coverage detected