19 lines
358 B
TypeScript
19 lines
358 B
TypeScript
import { vi } from "vitest";
|
|
import { config } from "@vue/test-utils";
|
|
|
|
Object.defineProperty(global, "import", {
|
|
value: {
|
|
meta: {
|
|
glob: vi.fn(() => ({})),
|
|
},
|
|
},
|
|
writable: true,
|
|
});
|
|
|
|
config.global.stubs = {
|
|
NuxtLayout: true,
|
|
NuxtPage: true,
|
|
Divider: true,
|
|
NuxtRouteAnnouncer: true,
|
|
NuxtLink: { template: "<a><slot /></a>" },
|
|
};
|