Update test aliasing
This commit is contained in:
parent
34763e185a
commit
c05a3497c5
|
@ -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(),
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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 []
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
|
@ -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() }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue