Skip to content

Commit

Permalink
Update mock imports
Browse files Browse the repository at this point in the history
  • Loading branch information
aptkingston committed Dec 31, 2024
1 parent 00e7cf6 commit 6a9b672
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/builder/src/stores/builder/tests/app.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from "./fixtures"
import { API } from "@/api"

vi.mock("api", () => {
vi.mock("@/api", () => {
return {
API: {
fetchAppRoutes: vi.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { makePropSafe as safe } from "@budibase/string-templates"
// Could move to fixtures
const COMP_PREFIX = "@budibase/standard-components"

vi.mock("api", () => {
vi.mock("@/api", () => {
return {
API: {
fetchComponentLibDefinitions: vi.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from "@/stores/builder/navigation"
import { appStore } from "@/stores/builder"

vi.mock("api", () => {
vi.mock("@/api", () => {
return {
API: {
saveAppMetadata: vi.fn(),
Expand Down
2 changes: 1 addition & 1 deletion packages/builder/src/stores/builder/tests/screens.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ vi.mock("@/stores/builder/components/utils", () => {
}
})

vi.mock("api", () => {
vi.mock("@/api", () => {
return {
API: {
fetchAppPackage: vi.fn(),
Expand Down
2 changes: 1 addition & 1 deletion packages/builder/src/stores/portal/admin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ vi.mock("svelte/store", () => {
}
})

vi.mock("api", () => {
vi.mock("@/api", () => {
return {
API: {
getEnvironment: vi.fn(),
Expand Down
3 changes: 1 addition & 2 deletions packages/builder/src/stores/portal/backups.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { it, expect, describe, beforeEach, vi } from "vitest"
import { createBackupsStore } from "./backups"

import { writable } from "svelte/store"
import { API } from "@/api"

Expand All @@ -16,7 +15,7 @@ vi.mock("svelte/store", () => {
}
})

vi.mock("api", () => {
vi.mock("@/api", () => {
return {
API: {
searchBackups: vi.fn(() => "searchBackupsReturn"),
Expand Down

0 comments on commit 6a9b672

Please sign in to comment.