Update test aliasing

This commit is contained in:
Andrew Kingston 2024-12-18 15:22:32 +00:00
parent 34763e185a
commit c05a3497c5
No known key found for this signature in database
6 changed files with 7 additions and 7 deletions

View File

@ -5,7 +5,7 @@ import {
} from "./datasourceCreation" } from "./datasourceCreation"
import { get } from "svelte/store" import { get } from "svelte/store"
vi.mock("stores/selectors", () => ({ vi.mock("@/stores/selectors", () => ({
shouldIntegrationFetchTableNames: vi.fn(), shouldIntegrationFetchTableNames: vi.fn(),
})) }))

View File

@ -36,7 +36,7 @@ vi.mock("api", () => {
} }
}) })
vi.mock("stores/builder", async () => { vi.mock("@/stores/builder", async () => {
const mockAppStore = writable() const mockAppStore = writable()
const appStore = { const appStore = {
subscribe: mockAppStore.subscribe, subscribe: mockAppStore.subscribe,

View File

@ -15,7 +15,7 @@ vi.mock("api", () => {
} }
}) })
vi.mock("stores/builder", async () => { vi.mock("@/stores/builder", async () => {
const mockAppStore = writable() const mockAppStore = writable()
const appStore = { const appStore = {
subscribe: mockAppStore.subscribe, subscribe: mockAppStore.subscribe,

View File

@ -16,7 +16,7 @@ import {
const COMP_PREFIX = "@budibase/standard-components" const COMP_PREFIX = "@budibase/standard-components"
vi.mock("stores/builder", async () => { vi.mock("@/stores/builder", async () => {
const mockAppStore = writable() const mockAppStore = writable()
const mockComponentStore = writable() const mockComponentStore = writable()
const mockLayoutStore = writable() const mockLayoutStore = writable()
@ -49,7 +49,7 @@ vi.mock("stores/builder", async () => {
} }
}) })
vi.mock("stores/builder/components/utils", () => { vi.mock("@/stores/builder/components/utils", () => {
return { return {
findAllMatchingComponents: vi.fn().mockImplementation(() => { findAllMatchingComponents: vi.fn().mockImplementation(() => {
return [] return []

View File

@ -12,7 +12,7 @@ vi.mock("svelte/store", () => ({
})), })),
})) }))
vi.mock("stores/builder/integrations", () => ({ integrations: vi.fn() })) vi.mock("@/stores/builder/integrations", () => ({ integrations: vi.fn() }))
const inputA = { const inputA = {
nonRelationalA: { nonRelationalA: {

View File

@ -6,7 +6,7 @@ import { API } from "@/api"
import { auth } from "@/stores/portal" import { auth } from "@/stores/portal"
import { banner } from "@budibase/bbui" import { banner } from "@budibase/bbui"
vi.mock("stores/portal", () => { vi.mock("@/stores/portal", () => {
return { auth: vi.fn() } return { auth: vi.fn() }
}) })