[Closes #10] Reactive breadcrumbs
This commit is contained in:
parent
6d3cdb560d
commit
a1708317ec
19 changed files with 200 additions and 33 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue