import Col from '../index.vue'; import Row from '../../row/index.vue'; import { mount } from '@vue/test-utils'; // 测试用例 test('should render Col correctly and should render gutter correctly', async () => { const wrapper = mount({ components: { Row: Row, Col: Col }, template: ` 8 8 8 ` }); expect(wrapper.html()).toMatchSnapshot(); });