[Closes #10] Reactive breadcrumbs
All checks were successful
Production Build and Deploy / Build (push) Successful in 1m32s
Production Build and Deploy / Deploy (push) Successful in 23s

This commit is contained in:
Liviu Burcusel 2026-01-12 14:26:29 +01:00
parent 6d3cdb560d
commit a1708317ec
Signed by: liviu
GPG key ID: 6CDB37A4AD2C610C
19 changed files with 200 additions and 33 deletions

View file

@ -18,6 +18,16 @@ Object.defineProperty(global, "import", {
writable: true,
});
const breadcrumbStoreMocks = vi.hoisted(() => ({
setBreadcrumbs: vi.fn(),
addBreadcrumb: vi.fn(),
clear: vi.fn(),
items: [{ label: "Auth" }, { label: "Create Account", to: "/auth/create-account" }],
}));
vi.mock("~/stores/breadcrumbs", () => ({
useBreadcrumbStore: () => breadcrumbStoreMocks,
}));
config.global.stubs = {
NuxtLayout: true,
NuxtPage: true,