1
0
Fork 0
mirror of synced 2024-10-05 20:44:47 +13:00
budibase/packages/server/__mocks__/mysql2/promise.ts

19 lines
333 B
TypeScript
Raw Normal View History

2024-03-21 00:46:39 +13:00
// eslint-disable-next-line @typescript-eslint/no-unused-vars
module MySQLMock {
const mysql: any = {}
const client = {
connect: jest.fn(),
end: jest.fn(),
query: jest.fn(async () => {
return [[]]
}),
}
mysql.createConnection = jest.fn(async () => {
return client
})
module.exports = mysql
}