Fixed tests
All checks were successful
Production PR / QA Tests (pull_request) Successful in 44s

This commit is contained in:
Liviu Burcusel 2026-01-12 11:47:38 +01:00
parent a7f75868cf
commit 414aea1cbd
Signed by: liviu
GPG key ID: 6CDB37A4AD2C610C
5 changed files with 17 additions and 7 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,