|
|
@@ -15,7 +15,7 @@ import { config } from 'dotenv';
|
|
|
import { resolve } from 'path';
|
|
|
|
|
|
// 在测试环境中加载环境变量
|
|
|
-config({ path: resolve(process.cwd(), '.env') });
|
|
|
+config({ path: resolve(process.cwd(), '.env.test') });
|
|
|
|
|
|
// 设置集成测试钩子
|
|
|
setupIntegrationDatabaseHooksWithEntities([PaymentEntity, UserEntity, File, Role])
|