(data: { name: string; email: string; age: number })
| 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() |
no test coverage detected