Files
fruit-project/tests/unit/global.spec.js

15 lines
330 B
JavaScript

import { mount } from "@vue/test-utils";
import App from "@/App.vue";
describe("App", () => {
const wrapper = mount(App, { stubs: ["router-view"] });
it("should be a Vue instance", () => {
expect(wrapper.vm).toBeTruthy();
});
it("renders correctly", () => {
expect(wrapper.find("#app")).toBeTruthy();
});
});