/* import Link from "../index.vue"; import { shallowMount } from "@vue/test-utils"; import { describe, expect, test } from "vitest"; //使用shallowMount()方法挂载组件,并使用expect断言方法来检验组件的渲染是否正确 describe("Link", () => { test("mount @vue/test-utils", () => { const wrapper = shallowMount(Link, { slots: { default: "Link", }, }); //断言 expect(wrapper.text()).toBe("Link"); }); test("mount size", () => { const wrapper = shallowMount(Link, {}); //断言 expect( wrapper .classes() .map((v: string) => v.replace("\n", "")) .includes("p-button--normal") ).toBe(true); }); test("default color is black", () => { const wrapper = shallowMount(Link); // 断言组件默认颜色是否是 black expect(wrapper.props().iconColor).toBe("#323233"); }); }); */