1
0
Fork 0
mirror of synced 2024-07-29 10:05:55 +12:00
budibase/packages/server/__mocks__/mssql.ts

18 lines
309 B
TypeScript
Raw Normal View History

2024-03-20 05:50:48 +13:00
module.exports = {
ConnectionPool: jest.fn(() => ({
connect: jest.fn(() => ({
request: jest.fn(() => ({
query: jest.fn(sql => ({ recordset: [sql] })),
})),
})),
})),
query: jest.fn(() => ({
recordset: [
{
a: "string",
b: 1,
},
],
2024-03-20 05:50:48 +13:00
})),
}