budibase/packages/server/__mocks__/pg.js

20 lines
236 B
JavaScript

const pg = {}
// constructor
function Client() {}
Client.prototype.query = jest.fn(() => ({
rows: [
{
a: "string",
b: 1,
},
],
}))
Client.prototype.connect = jest.fn()
pg.Client = Client
module.exports = pg