(id: number, fails: boolean)
| 238 | } |
| 239 | |
| 240 | async function executeThread(id: number, fails: boolean): Promise<void> { |
| 241 | await ctx.db.transaction().execute(async (trx) => { |
| 242 | await insertPerson(trx, id) |
| 243 | await insertPet(trx, id) |
| 244 | |
| 245 | if (fails) { |
| 246 | throw new Error() |
| 247 | } |
| 248 | }) |
| 249 | } |
| 250 | }) |
| 251 | |
| 252 | it('should retain the full stack trace', async () => { |
no test coverage detected
searching dependent graphs…