Update mock imports

This commit is contained in:
Andrew Kingston 2024-12-31 10:04:34 +00:00
parent 00e7cf6904
commit 6a9b672855
No known key found for this signature in database
6 changed files with 6 additions and 7 deletions

View File

@ -10,7 +10,7 @@ import {
} from "./fixtures"
import { API } from "@/api"
vi.mock("api", () => {
vi.mock("@/api", () => {
return {
API: {
fetchAppRoutes: vi.fn(),

View File

@ -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(),

View File

@ -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(),

View File

@ -57,7 +57,7 @@ vi.mock("@/stores/builder/components/utils", () => {
}
})
vi.mock("api", () => {
vi.mock("@/api", () => {
return {
API: {
fetchAppPackage: vi.fn(),

View File

@ -20,7 +20,7 @@ vi.mock("svelte/store", () => {
}
})
vi.mock("api", () => {
vi.mock("@/api", () => {
return {
API: {
getEnvironment: vi.fn(),

View File

@ -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"
@ -16,7 +15,7 @@ vi.mock("svelte/store", () => {
}
})
vi.mock("api", () => {
vi.mock("@/api", () => {
return {
API: {
searchBackups: vi.fn(() => "searchBackupsReturn"),