budibase/packages/server/__mocks__/mysql.js

13 lines
198 B
JavaScript
Raw Normal View History

2021-03-15 17:26:46 +01:00
const mysql = {}
const client = {
connect: jest.fn(),
2021-06-17 16:24:52 +02:00
query: jest.fn((query, bindings, fn) => {
2021-06-03 19:48:04 +02:00
fn(null, [])
}),
2021-03-15 17:26:46 +01:00
}
mysql.createConnection = jest.fn(() => client)
module.exports = mysql