MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / createAuthor

Function createAuthor

tests/features/clone/clone.test.ts:189–194  ·  view source on GitHub ↗
(data: { name: string; email: string; age: number })

Source from the content-addressed store, hash-verified

187 afterAll(() => orm.close());
188
189 async function createAuthor(data: { name: string; email: string; age: number }) {
190 const author = orm.em.create(Author, data);
191 await orm.em.flush();
192 orm.em.clear();
193 return author;
194 }
195
196 // -------------------------------------------------------
197 // QueryBuilder: insertFrom()

Callers 1

clone.test.tsFile · 0.85

Calls 3

createMethod · 0.65
clearMethod · 0.65
flushMethod · 0.45

Tested by

no test coverage detected