Camille Feghali
Camille Feghali
hey @malthe , thanks for getting back to me. Maybe I should've shared this from the start. I created a small wrapper around `ts-postgres` like so: ``` export default function...
nothing, I omitted the catch/finally to avoid clutter. It's actually this: ``` async function query(query: string): Promise { const conn = await connection(); try { const queryResult = await conn.query(query);...
for more info. If I `conn.end()` in the `finally`, ts-postgres does not log when running a single test. But throws `Already ending` when running my test suite.
@malthe I figured it out. in the `beforeAll()` block of my tests, I was running a `await Promise.all(arr.map(x => await query('insert ...')))`, I changed it to build the whole query...