-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Running a postgres locally
import { Pool } from 'pg';
const pool = new Pool({})
describe('check connexion', () => {
it('should select 1', async () => {
const result = await pg.query('SELECT 1 as hey');
expect(result.rows[0]).toEqual({ hey: 1 });
});
afterAll(() => pg.end());
});
Fails with current node 14.0.0
Works on node 12.16.2.
smushy129, redhat-raptor, blaskovicz, ragu1257, Romstar and 4 more
Metadata
Metadata
Assignees
Labels
No labels