* Moved eslint and @nuxt/eslint to devDependencies * Added vitest to project and 1 test * Tweaked Sonar workflow in order to run tests and coverage * Removed offending config line
18 lines
449 B
TypeScript
18 lines
449 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import type { VueWrapper } from "@vue/test-utils";
|
|
import { mount } from "@vue/test-utils";
|
|
import App from "../app/app.vue";
|
|
|
|
describe("app.vue", () => {
|
|
const wrapper: VueWrapper = mount(App, {
|
|
global: {
|
|
stubs: {
|
|
NuxtRouteAnnouncer: true,
|
|
NuxtWelcome: true,
|
|
},
|
|
},
|
|
});
|
|
it("renders without crashing", () => {
|
|
expect(wrapper.exists()).toBe(true);
|
|
});
|
|
});
|