Skip to content

Commit 2882130

Browse files
authored
test: Add missing mocks to prevent test error logs (#1690)
# Summary This PR adds a couple of missing functions to a metadata mock, which eliminates some unwanted error logs while running the tests
1 parent 7448508 commit 2882130

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/api/src/tasks/checkAlerts/__tests__/checkAlerts.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ describe('checkAlerts', () => {
143143
getTableMetadata: jest.fn().mockResolvedValue({}),
144144
getClickHouseSettings: jest.fn().mockReturnValue({}),
145145
setClickHouseSettings: jest.fn(),
146+
getSkipIndices: jest.fn().mockResolvedValue([]),
147+
getSetting: jest.fn().mockResolvedValue(undefined),
146148
} as any;
147149

148150
// Create a mock clickhouse client

0 commit comments

Comments
 (0)