budibase/packages/server/__mocks__/mysql.js

11 lines
166 B
JavaScript
Raw Normal View History

2021-03-15 17:26:46 +01:00
const mysql = {}
const client = {
connect: jest.fn(),
query: jest.fn((sql, cb) => cb),
}
mysql.createConnection = jest.fn(() => client)
module.exports = mysql