mirror of https://github.com/Budibase/budibase.git
2 changed files with 21 additions and 4 deletions
@ -0,0 +1,17 @@ |
|||
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 |
|||
} |
|||
Loading…
Reference in new issue