Add more vitest mocking to try to get tests to pass

This commit is contained in:
Andrew Kingston 2024-12-31 09:37:49 +00:00
parent a83ae43da7
commit 00e7cf6904
No known key found for this signature in database
2 changed files with 9 additions and 1 deletions

View File

@ -31,7 +31,12 @@ vi.mock("api", () => {
})
vi.mock("@budibase/bbui", () => {
return { banner: { showStatus: vi.fn() } }
return {
banner: { showStatus: vi.fn() },
Helpers: {
uuid: vi.fn(),
},
}
})
describe("admin store", () => {

View File

@ -10,6 +10,9 @@ vi.mock("svelte/store", () => {
subscribe: vi.fn(),
update: vi.fn(),
})),
derived: vi.fn(() => ({
subscribe: vi.fn(),
})),
}
})