PR comments.
This commit is contained in:
parent
3d7270983c
commit
0669151704
|
@ -1,8 +1,6 @@
|
||||||
import { DEFAULT_TABLES } from "../../../db/defaultData/datasource_bb_default"
|
import { DEFAULT_TABLES } from "../../../db/defaultData/datasource_bb_default"
|
||||||
import { setEnv } from "../../../environment"
|
import { setEnv } from "../../../environment"
|
||||||
|
|
||||||
setEnv({ USE_LOCAL_COMPONENT_LIBS: "0" })
|
|
||||||
|
|
||||||
jest.mock("../../../utilities/redis", () => ({
|
jest.mock("../../../utilities/redis", () => ({
|
||||||
init: jest.fn(),
|
init: jest.fn(),
|
||||||
getLocksById: () => {
|
getLocksById: () => {
|
||||||
|
@ -30,10 +28,16 @@ import path from "path"
|
||||||
|
|
||||||
describe("/applications", () => {
|
describe("/applications", () => {
|
||||||
let config = setup.getConfig()
|
let config = setup.getConfig()
|
||||||
let app: App
|
let app: App, cleanup: () => void
|
||||||
|
|
||||||
afterAll(setup.afterAll)
|
afterAll(() => {
|
||||||
beforeAll(async () => await config.init())
|
setup.afterAll()
|
||||||
|
cleanup()
|
||||||
|
})
|
||||||
|
beforeAll(async () => {
|
||||||
|
cleanup = setEnv({ USE_LOCAL_COMPONENT_LIBS: "0" })
|
||||||
|
await config.init()
|
||||||
|
})
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
app = await config.api.application.create({ name: utils.newid() })
|
app = await config.api.application.create({ name: utils.newid() })
|
||||||
|
|
Loading…
Reference in New Issue