(body: (db: SqliteTestFumaDb) => Promise<A>)
| 17 | const OTHER_TENANT = "t2"; |
| 18 | |
| 19 | const withDb = <A>(body: (db: SqliteTestFumaDb) => Promise<A>): Promise<A> => |
| 20 | Effect.runPromise( |
| 21 | Effect.acquireUseRelease( |
| 22 | Effect.promise(() => createSqliteTestFumaDb({ tables: collectTables() })), |
| 23 | (db) => Effect.promise(() => body(db)), |
| 24 | (db) => Effect.promise(() => db.close()), |
| 25 | ), |
| 26 | ); |
| 27 | |
| 28 | const insertSubject = ( |
| 29 | db: SqliteTestFumaDb, |
no test coverage detected