10 lines
151 B
JavaScript
10 lines
151 B
JavaScript
const mysql = {}
|
|
|
|
const client = {
|
|
connect: jest.fn(),
|
|
query: jest.fn(),
|
|
}
|
|
|
|
mysql.createConnection = jest.fn(() => client)
|
|
|
|
module.exports = mysql
|