glowing-fiesta/tests/setup.ts
Liviu Burcusel 82acb354ca
8 primevue install (#9)
* 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
2025-10-26 19:54:14 +01:00

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 };