Update test aliasing
This commit is contained in:
parent
34763e185a
commit
c05a3497c5
|
@ -5,7 +5,7 @@ import {
|
|||
} from "./datasourceCreation"
|
||||
import { get } from "svelte/store"
|
||||
|
||||
vi.mock("stores/selectors", () => ({
|
||||
vi.mock("@/stores/selectors", () => ({
|
||||
shouldIntegrationFetchTableNames: vi.fn(),
|
||||
}))
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ vi.mock("api", () => {
|
|||
}
|
||||
})
|
||||
|
||||
vi.mock("stores/builder", async () => {
|
||||
vi.mock("@/stores/builder", async () => {
|
||||
const mockAppStore = writable()
|
||||
const appStore = {
|
||||
subscribe: mockAppStore.subscribe,
|
||||
|
|
|
@ -15,7 +15,7 @@ vi.mock("api", () => {
|
|||
}
|
||||
})
|
||||
|
||||
vi.mock("stores/builder", async () => {
|
||||
vi.mock("@/stores/builder", async () => {
|
||||
const mockAppStore = writable()
|
||||
const appStore = {
|
||||
subscribe: mockAppStore.subscribe,
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
|
||||
const COMP_PREFIX = "@budibase/standard-components"
|
||||
|
||||
vi.mock("stores/builder", async () => {
|
||||
vi.mock("@/stores/builder", async () => {
|
||||
const mockAppStore = writable()
|
||||
const mockComponentStore = 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 {
|
||||
findAllMatchingComponents: vi.fn().mockImplementation(() => {
|
||||
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 = {
|
||||
nonRelationalA: {
|
||||
|
|
|
@ -6,7 +6,7 @@ import { API } from "@/api"
|
|||
import { auth } from "@/stores/portal"
|
||||
import { banner } from "@budibase/bbui"
|
||||
|
||||
vi.mock("stores/portal", () => {
|
||||
vi.mock("@/stores/portal", () => {
|
||||
return { auth: vi.fn() }
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue