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"
import { get } from "svelte/store"
vi.mock("stores/selectors", () => ({
vi.mock("@/stores/selectors", () => ({
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 appStore = {
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 appStore = {
subscribe: mockAppStore.subscribe,

View File

@ -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 []

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 = {
nonRelationalA: {

View File

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