Make sure application test case uses MinIO.

This commit is contained in:
mike12345567 2025-03-03 13:40:16 +00:00
parent 762d28f305
commit 3d7270983c
2 changed files with 4 additions and 1 deletions

View File

@ -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)
}

View File

@ -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(),