import * as s from '../../src/utils/db/sql' // mock functions that get data from postgres and give them the right types type UnPromisify = F extends (...args: infer A) => Promise ? (...args: A) => T : never export const getPluginRows = s.getActivePluginRows as unknown as jest.MockedFunction< UnPromisify > export const getPluginAttachmentRows = s.getPluginAttachmentRows as unknown as jest.MockedFunction< UnPromisify > export const getPluginConfigRows = s.getPluginConfigRows as unknown as jest.MockedFunction< UnPromisify > export const setPluginCapabilities = s.setPluginCapabilities as unknown as jest.MockedFunction< UnPromisify > export const disablePlugin = s.disablePlugin as unknown as jest.MockedFunction>