Clean test
This commit is contained in:
parent
e36fd75bc1
commit
8a9474c2ac
|
@ -1,20 +1,13 @@
|
||||||
import TestConfiguration from "../../../tests/utilities/TestConfiguration"
|
|
||||||
import { inputProcessing } from ".."
|
import { inputProcessing } from ".."
|
||||||
import { generator, structures } from "@budibase/backend-core/tests"
|
import { generator, structures } from "@budibase/backend-core/tests"
|
||||||
import { FieldType, FieldTypeSubtypes, Table } from "@budibase/types"
|
import { FieldType, FieldTypeSubtypes, Table } from "@budibase/types"
|
||||||
import * as bbReferenceProcessor from "../bbReferenceProcessor"
|
import * as bbReferenceProcessor from "../bbReferenceProcessor"
|
||||||
|
|
||||||
const config = new TestConfiguration()
|
|
||||||
|
|
||||||
jest.mock("../bbReferenceProcessor", (): typeof bbReferenceProcessor => ({
|
jest.mock("../bbReferenceProcessor", (): typeof bbReferenceProcessor => ({
|
||||||
processOutputBBReferences: jest.fn(),
|
processOutputBBReferences: jest.fn(),
|
||||||
}))
|
}))
|
||||||
|
|
||||||
describe("rowProcessor - inputProcessing", () => {
|
describe("rowProcessor - inputProcessing", () => {
|
||||||
beforeAll(async () => {
|
|
||||||
await config.init()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
jest.resetAllMocks()
|
jest.resetAllMocks()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue