Make sure application test case uses MinIO.
This commit is contained in:
parent
762d28f305
commit
3d7270983c
|
@ -659,7 +659,7 @@ async function destroyApp(ctx: UserCtx) {
|
|||
await quotas.removeApp()
|
||||
await events.app.deleted(app)
|
||||
|
||||
if (!env.isTest()) {
|
||||
if (!env.USE_LOCAL_COMPONENT_LIBS) {
|
||||
await deleteAppFiles(appId)
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
import { DEFAULT_TABLES } from "../../../db/defaultData/datasource_bb_default"
|
||||
import { setEnv } from "../../../environment"
|
||||
|
||||
setEnv({ USE_LOCAL_COMPONENT_LIBS: "0" })
|
||||
|
||||
jest.mock("../../../utilities/redis", () => ({
|
||||
init: jest.fn(),
|
||||
|
|
Loading…
Reference in New Issue