budibase/packages/server/__mocks__/mysql.js

11 lines
151 B
JavaScript
Raw Normal View History

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