budibase/packages/server/__mocks__/mssql.ts

18 lines
309 B
TypeScript
Raw Normal View History

2024-03-19 17:50:48 +01: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-19 17:50:48 +01:00
})),
}