Added vitest (#5)
* 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
This commit is contained in:
parent
c98879430b
commit
3b58a25ccf
9 changed files with 942 additions and 15 deletions
18
tests/app.test.ts
Normal file
18
tests/app.test.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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);
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue