11 lines
348 B
TypeScript
11 lines
348 B
TypeScript
import { describe, it, expect } from "vitest";
|
|
|
|
import { mount } from "@vue/test-utils";
|
|
import HelloWorld from "./HelloWorld.vue";
|
|
|
|
describe("HelloWorld", () => {
|
|
it("renders properly", () => {
|
|
const wrapper = mount(HelloWorld, { props: { msg: "Hello Vitest" } });
|
|
expect(wrapper.text()).toContain("Hello Vitest");
|
|
});
|
|
});
|