11 lines
183 B
TypeScript
11 lines
183 B
TypeScript
const client = {
|
|
connect: jest.fn(),
|
|
query: jest.fn((query, bindings, fn) => {
|
|
fn(null, [])
|
|
}),
|
|
}
|
|
|
|
module.exports = {
|
|
createConnection: jest.fn(() => client),
|
|
client,
|
|
}
|