Fix tests
This commit is contained in:
parent
fad4f12e26
commit
317da512a5
|
@ -7,9 +7,14 @@ import { HTTPError } from "@budibase/backend-core"
|
|||
import { Operation } from "@budibase/types"
|
||||
|
||||
const mockDatasourcesGet = jest.fn()
|
||||
const mockTableGet = jest.fn()
|
||||
sdk.datasources.get = mockDatasourcesGet
|
||||
sdk.tables.getTable = mockTableGet
|
||||
|
||||
jest.mock("../../../api/controllers/row/ExternalRequest")
|
||||
jest.mock("../../../utilities/rowProcessor", () => ({
|
||||
outputProcessing: jest.fn((_, rows) => rows),
|
||||
}))
|
||||
|
||||
jest.mock("../../../api/controllers/view/exporters", () => ({
|
||||
...jest.requireActual("../../../api/controllers/view/exporters"),
|
||||
|
|
Loading…
Reference in New Issue