Add more vitest mocking to try to get tests to pass
This commit is contained in:
parent
a83ae43da7
commit
00e7cf6904
|
@ -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", () => {
|
||||
|
|
|
@ -10,6 +10,9 @@ vi.mock("svelte/store", () => {
|
|||
subscribe: vi.fn(),
|
||||
update: vi.fn(),
|
||||
})),
|
||||
derived: vi.fn(() => ({
|
||||
subscribe: vi.fn(),
|
||||
})),
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue