MCPcopy Create free account
hub / github.com/Snowflyt/tinyeffect / createUser1

Function createUser1

test/README.example.proof.ts:814–821  ·  view source on GitHub ↗
(user: Omit<User, "id">)

Source from the content-addressed store, hash-verified

812 });
813
814 const createUser1 = (user: Omit<User, "id">) =>
815 requiresAdmin()
816 .andThen(() =>
817 executeSQL("INSERT INTO users (name) VALUES (?)", user.name).andThen(
818 (id) => ({ id, ...user }) as User,
819 ),
820 )
821 .tap((savedUser) => println("User created:", savedUser));
822
823 expect(createUser1).to(
824 equal<

Callers

nothing calls this directly

Calls 3

requiresAdminFunction · 0.70
tapMethod · 0.65
andThenMethod · 0.65

Tested by

no test coverage detected