/** * M03-01 客户主数据 - CustomerList 组件渲染测试骨架 */ import { describe, it, expect, beforeEach, vi } from 'vitest' import { mount } from '@vue/test-utils' import { setActivePinia, createPinia } from 'pinia' vi.mock('@/api/mdmCustomer/index', () => ({ findCrmCustomerPage: vi.fn().mockResolvedValue({ code: 800, data: { rows: [], total: 0 }, }), saveCrmCustomer: vi.fn(), updateCrmCustomer: vi.fn(), getCrmCustomerById: vi.fn(), findAddressListByCustomerId: vi.fn(), saveCrmCustomerAddress: vi.fn(), deleteCrmCustomerAddress: vi.fn(), })) vi.mock('vue-i18n', () => ({ useI18n: () => ({ t: (key: string) => key }), })) import CustomerList from '@/views/mdmCustomer/index.vue' const globalStubs = { 'el-card': { template: '
' }, 'el-breadcrumb': { template: '
' }, 'el-breadcrumb-item': { template: '' }, 'el-alert': { template: '
' }, 'el-form': { template: '
' }, 'el-form-item': { template: '
' }, 'el-input': { template: '' }, 'el-select': { template: '' }, 'el-option': { template: '