19 lines
333 B
TypeScript
19 lines
333 B
TypeScript
// 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
|
|
}
|