* Added PrimeVue with TailwindCSS support and modified Homepage to test the changes. * Configured vitest to use PrimeVue and wrote a quick test for home page
17 lines
398 B
TypeScript
17 lines
398 B
TypeScript
import { vi } from "vitest";
|
|
import { config } from "@vue/test-utils";
|
|
import PrimeVue from "primevue/config";
|
|
import Button from "primevue/button";
|
|
|
|
Object.defineProperty(global, "import", {
|
|
value: {
|
|
meta: {
|
|
glob: vi.fn(() => ({})),
|
|
},
|
|
},
|
|
writable: true,
|
|
});
|
|
|
|
config.global.plugins = [PrimeVue];
|
|
config.global.stubs = { NuxtPage: true };
|
|
config.global.components = { Button };
|