budibase/packages/server/__mocks__/mysql.js

13 lines
198 B
JavaScript

const mysql = {}
const client = {
connect: jest.fn(),
query: jest.fn((query, bindings, fn) => {
fn(null, [])
}),
}
mysql.createConnection = jest.fn(() => client)
module.exports = mysql