Skip to content

Commit

Permalink
Add more vitest mocking to try to get tests to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
aptkingston committed Dec 31, 2024
1 parent a83ae43 commit 00e7cf6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/builder/src/stores/portal/admin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down
3 changes: 3 additions & 0 deletions packages/builder/src/stores/portal/backups.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ vi.mock("svelte/store", () => {
subscribe: vi.fn(),
update: vi.fn(),
})),
derived: vi.fn(() => ({
subscribe: vi.fn(),
})),
}
})

Expand Down

0 comments on commit 00e7cf6

Please sign in to comment.