diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/tests/hooks/swr')
6 files changed, 20 insertions, 20 deletions
diff --git a/packages/merchant-backoffice-ui/tests/hooks/swr/index.tsx b/packages/merchant-backoffice-ui/tests/hooks/swr/index.tsx index 44514855d..1cf9220d6 100644 --- a/packages/merchant-backoffice-ui/tests/hooks/swr/index.tsx +++ b/packages/merchant-backoffice-ui/tests/hooks/swr/index.tsx @@ -21,8 +21,8 @@ import { ComponentChildren, h, VNode } from "preact"; import { SWRConfig } from "swr"; -import { BackendContextProvider } from "../../../src/context/backend"; -import { InstanceContextProvider } from "../../../src/context/instance"; +import { BackendContextProvider } from "../../../src/context/backend.js"; +import { InstanceContextProvider } from "../../../src/context/instance.js"; interface TestingContextProps { children?: ComponentChildren; diff --git a/packages/merchant-backoffice-ui/tests/hooks/swr/instance.test.ts b/packages/merchant-backoffice-ui/tests/hooks/swr/instance.test.ts index 55d9fa6ee..5bc463e74 100644 --- a/packages/merchant-backoffice-ui/tests/hooks/swr/instance.test.ts +++ b/packages/merchant-backoffice-ui/tests/hooks/swr/instance.test.ts @@ -21,8 +21,8 @@ import { renderHook } from "@testing-library/preact-hooks"; import { act } from "preact/test-utils"; -import { MerchantBackend } from "../../../src/declaration"; -import { useAdminAPI, useBackendInstances, useInstanceAPI, useInstanceDetails, useManagementAPI } from "../../../src/hooks/instance"; +import { MerchantBackend } from "../../../src/declaration.js"; +import { useAdminAPI, useBackendInstances, useInstanceAPI, useInstanceDetails, useManagementAPI } from "../../../src/hooks/instance.js"; import { API_CREATE_INSTANCE, API_DELETE_INSTANCE, @@ -34,8 +34,8 @@ import { API_UPDATE_INSTANCE_BY_ID, assertJustExpectedRequestWereMade, AxiosMockEnvironment -} from "../../axiosMock"; -import { TestingContext } from "./index"; +} from "../../axiosMock.js"; +import { TestingContext } from "./index.js"; describe("instance api interaction with details ", () => { diff --git a/packages/merchant-backoffice-ui/tests/hooks/swr/order.test.ts b/packages/merchant-backoffice-ui/tests/hooks/swr/order.test.ts index e7f6c9334..29f117df6 100644 --- a/packages/merchant-backoffice-ui/tests/hooks/swr/order.test.ts +++ b/packages/merchant-backoffice-ui/tests/hooks/swr/order.test.ts @@ -22,15 +22,15 @@ import { renderHook } from "@testing-library/preact-hooks"; import { act } from "preact/test-utils"; import { TestingContext } from "."; -import { MerchantBackend } from "../../../src/declaration"; -import { useInstanceOrders, useOrderAPI, useOrderDetails } from "../../../src/hooks/order"; +import { MerchantBackend } from "../../../src/declaration.js"; +import { useInstanceOrders, useOrderAPI, useOrderDetails } from "../../../src/hooks/order.js"; import { API_CREATE_ORDER, API_DELETE_ORDER, API_FORGET_ORDER_BY_ID, API_GET_ORDER_BY_ID, API_LIST_ORDERS, API_REFUND_ORDER_BY_ID, assertJustExpectedRequestWereMade, assertNextRequest, assertNoMoreRequestWereMade, AxiosMockEnvironment -} from "../../axiosMock"; +} from "../../axiosMock.js"; describe("order api interaction with listing", () => { diff --git a/packages/merchant-backoffice-ui/tests/hooks/swr/product.test.ts b/packages/merchant-backoffice-ui/tests/hooks/swr/product.test.ts index 5d39a7c47..9beaec747 100644 --- a/packages/merchant-backoffice-ui/tests/hooks/swr/product.test.ts +++ b/packages/merchant-backoffice-ui/tests/hooks/swr/product.test.ts @@ -22,8 +22,8 @@ import { renderHook } from "@testing-library/preact-hooks"; import { act } from "preact/test-utils"; import { TestingContext } from "."; -import { MerchantBackend } from "../../../src/declaration"; -import { useInstanceProducts, useProductAPI, useProductDetails } from "../../../src/hooks/product"; +import { MerchantBackend } from "../../../src/declaration.js"; +import { useInstanceProducts, useProductAPI, useProductDetails } from "../../../src/hooks/product.js"; import { API_CREATE_PRODUCT, API_DELETE_PRODUCT, API_GET_PRODUCT_BY_ID, @@ -32,7 +32,7 @@ import { assertJustExpectedRequestWereMade, assertNextRequest, AxiosMockEnvironment -} from "../../axiosMock"; +} from "../../axiosMock.js"; describe("product api interaction with listing ", () => { it("should evict cache when creating a product", async () => { diff --git a/packages/merchant-backoffice-ui/tests/hooks/swr/reserve.test.ts b/packages/merchant-backoffice-ui/tests/hooks/swr/reserve.test.ts index 0361c54e8..ba01b380e 100644 --- a/packages/merchant-backoffice-ui/tests/hooks/swr/reserve.test.ts +++ b/packages/merchant-backoffice-ui/tests/hooks/swr/reserve.test.ts @@ -21,13 +21,13 @@ import { renderHook } from "@testing-library/preact-hooks"; import { act } from "preact/test-utils"; -import { MerchantBackend } from "../../../src/declaration"; +import { MerchantBackend } from "../../../src/declaration.js"; import { useInstanceReserves, useReserveDetails, useReservesAPI, useTipDetails, -} from "../../../src/hooks/reserves"; +} from "../../../src/hooks/reserves.js"; import { API_AUTHORIZE_TIP, API_AUTHORIZE_TIP_FOR_RESERVE, @@ -38,8 +38,8 @@ import { API_LIST_RESERVES, assertJustExpectedRequestWereMade, AxiosMockEnvironment, -} from "../../axiosMock"; -import { TestingContext } from "./index"; +} from "../../axiosMock.js"; +import { TestingContext } from "./index.js"; describe("reserve api interaction with listing ", () => { it("should evict cache when creating a reserve", async () => { diff --git a/packages/merchant-backoffice-ui/tests/hooks/swr/transfer.test.ts b/packages/merchant-backoffice-ui/tests/hooks/swr/transfer.test.ts index 612cf8842..54c908629 100644 --- a/packages/merchant-backoffice-ui/tests/hooks/swr/transfer.test.ts +++ b/packages/merchant-backoffice-ui/tests/hooks/swr/transfer.test.ts @@ -20,16 +20,16 @@ */ import { act, renderHook } from "@testing-library/preact-hooks"; -import { TestingContext } from "./index"; -import { useInstanceTransfers, useTransferAPI } from "../../../src/hooks/transfer"; +import { TestingContext } from "./index.js"; +import { useInstanceTransfers, useTransferAPI } from "../../../src/hooks/transfer.js"; import { API_INFORM_TRANSFERS, API_LIST_TRANSFERS, assertJustExpectedRequestWereMade, assertNoMoreRequestWereMade, AxiosMockEnvironment, -} from "../../axiosMock"; -import { MerchantBackend } from "../../../src/declaration"; +} from "../../axiosMock.js"; +import { MerchantBackend } from "../../../src/declaration.js"; describe("transfer api interaction with listing", () => { |