|
@@ -11,6 +11,9 @@ import { UserEntityMt } from '@d8d/user-module-mt';
|
|
|
import { RoleMt } from '@d8d/user-module-mt';
|
|
import { RoleMt } from '@d8d/user-module-mt';
|
|
|
import { FileMt } from '@d8d/file-module-mt';
|
|
import { FileMt } from '@d8d/file-module-mt';
|
|
|
import { OrderMt } from '@d8d/orders-module-mt';
|
|
import { OrderMt } from '@d8d/orders-module-mt';
|
|
|
|
|
+import { MerchantMt } from '@d8d/merchant-module-mt';
|
|
|
|
|
+import { SupplierMt } from '@d8d/supplier-module-mt';
|
|
|
|
|
+import { DeliveryAddressMt } from '@d8d/delivery-address-module-mt';
|
|
|
import { config } from 'dotenv';
|
|
import { config } from 'dotenv';
|
|
|
import { resolve } from 'path';
|
|
import { resolve } from 'path';
|
|
|
// 导入微信支付SDK用于模拟
|
|
// 导入微信支付SDK用于模拟
|
|
@@ -22,7 +25,7 @@ config({ path: resolve(process.cwd(), '.env.test') });
|
|
|
vi.mock('wechatpay-node-v3')
|
|
vi.mock('wechatpay-node-v3')
|
|
|
|
|
|
|
|
// 设置集成测试钩子
|
|
// 设置集成测试钩子
|
|
|
-setupIntegrationDatabaseHooksWithEntities([PaymentMtEntity, UserEntityMt, FileMt, RoleMt, OrderMt])
|
|
|
|
|
|
|
+setupIntegrationDatabaseHooksWithEntities([PaymentMtEntity, UserEntityMt, FileMt, RoleMt, OrderMt, MerchantMt, SupplierMt, DeliveryAddressMt])
|
|
|
|
|
|
|
|
describe('支付回调API集成测试 - 多租户版本', () => {
|
|
describe('支付回调API集成测试 - 多租户版本', () => {
|
|
|
let client: ReturnType<typeof testClient<typeof PaymentMtRoutes>>;
|
|
let client: ReturnType<typeof testClient<typeof PaymentMtRoutes>>;
|