budibase/packages/server/__mocks__/mysql.js

11 lines
162 B
JavaScript
Raw Normal View History

2021-03-15 17:26:46 +01:00
const mysql = {}
const client = {
connect: jest.fn(),
2021-03-16 19:43:56 +01:00
query: jest.fn(console.log),
2021-03-15 17:26:46 +01:00
}
mysql.createConnection = jest.fn(() => client)
module.exports = mysql