feat(admin,admin-ui,medusa): Add Medusa Admin plugin (#3334)
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { fixtures } from "../../../../mocks/data"
|
||||
import {
|
||||
useCreateCart,
|
||||
useUpdateCart,
|
||||
useAddShippingMethodToCart,
|
||||
useCompleteCart,
|
||||
useCreateCart,
|
||||
useCreatePaymentSession,
|
||||
useUpdatePaymentSession,
|
||||
useDeletePaymentSession,
|
||||
useRefreshPaymentSession,
|
||||
useSetPaymentSession,
|
||||
useDeletePaymentSession,
|
||||
useAddShippingMethodToCart,
|
||||
useUpdateCart,
|
||||
useUpdatePaymentSession,
|
||||
} from "../../../../src"
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { fixtures } from "../../../../mocks/data"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("useCreateCart hook", () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useGetCart } from "../../../../src/"
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { fixtures } from "../../../../mocks/data"
|
||||
import { useGetCart } from "../../../../src/"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("useGetCart hook", () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useCollections, useCollection } from "../../../../src/"
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { fixtures } from "../../../../mocks/data"
|
||||
import { useCollection, useCollections } from "../../../../src/"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("useCollections hook", () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useCreateCustomer, useUpdateMe } from "../../../../src/"
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { fixtures } from "../../../../mocks/data"
|
||||
import { useCreateCustomer, useUpdateMe } from "../../../../src/"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("useCreateCustomer hook", () => {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { rest } from "msw"
|
||||
import { server } from "../../../../mocks/server"
|
||||
import { useMeCustomer, useCustomerOrders } from "../../../../src/"
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { fixtures } from "../../../../mocks/data"
|
||||
import { server } from "../../../../mocks/server"
|
||||
import { useCustomerOrders, useMeCustomer } from "../../../../src/"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("useMeCustomer hook", () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useGiftCard } from "../../../../src/"
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { fixtures } from "../../../../mocks/data"
|
||||
import { useGiftCard } from "../../../../src/"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("useGiftCard hook", () => {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { fixtures } from "../../../../mocks/data"
|
||||
import {
|
||||
useCreateLineItem,
|
||||
useUpdateLineItem,
|
||||
useDeleteLineItem,
|
||||
useUpdateLineItem,
|
||||
} from "../../../../src/"
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { fixtures } from "../../../../mocks/data"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("useCreateLineItem hook", () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { useCompleteOrderEdit, useDeclineOrderEdit } from "../../../../src/"
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("useDeclineOrderEdit hook", () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { fixtures } from "../../../../mocks/data"
|
||||
import { createWrapper } from "../../../utils"
|
||||
import { useOrderEdit } from "../../../../src/hooks/store/order-edits"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("useOrderEdit hook", () => {
|
||||
test("returns an order", async () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useRequestOrderAccess, useGrantOrderAccess } from "../../../../src/"
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { useGrantOrderAccess, useRequestOrderAccess } from "../../../../src/"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("useGrantOrderAccess hook", () => {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { useOrders } from "../../../../src/hooks"
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { rest } from "msw"
|
||||
import { fixtures } from "../../../../mocks/data"
|
||||
import { server } from "../../../../mocks/server"
|
||||
import { useCartOrder, useOrder } from "../../../../src/"
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { fixtures } from "../../../../mocks/data"
|
||||
import { useOrders } from "../../../../src/hooks"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("useOrder hook", () => {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import {
|
||||
useManageMultiplePaymentSessions,
|
||||
useManagePaymentSession,
|
||||
useAuthorizePaymentSession,
|
||||
useAuthorizePaymentSessionsBatch,
|
||||
useManageMultiplePaymentSessions,
|
||||
useManagePaymentSession,
|
||||
usePaymentCollectionRefreshPaymentSession,
|
||||
} from "../../../../src"
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("useManageMultiplePaymentSessions hook", () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { fixtures } from "../../../../mocks/data"
|
||||
import { createWrapper } from "../../../utils"
|
||||
import { usePaymentCollection } from "../../../../src/hooks/store/payment-collections"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("usePaymentCollection hook", () => {
|
||||
test("returns a payment collection", async () => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { fixtures } from "../../../../mocks/data/index"
|
||||
import { useProductTags } from "../../../../src"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { useProducts, useProduct } from "../../../../src"
|
||||
import { createWrapper } from "../../../utils"
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { fixtures } from "../../../../mocks/data/index"
|
||||
import { useProduct, useProducts } from "../../../../src"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("useProducts hook", () => {
|
||||
test("gets a list of products", async () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { fixtures } from "../../../../mocks/data"
|
||||
import { createWrapper } from "../../../utils"
|
||||
import { useRegion, useRegions } from "../../../../src/"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("useRegions hook", () => {
|
||||
test("success", async () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { fixtures } from "../../../../mocks/data"
|
||||
import { createWrapper } from "../../../utils"
|
||||
import { useReturnReason, useReturnReasons } from "../../../../src/"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("useReturnReasons hook", () => {
|
||||
test("returns a list of return reasons", async () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { useCreateReturn } from "../../../../src"
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { fixtures } from "../../../../mocks/data"
|
||||
import { useCreateReturn } from "../../../../src"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("useCreateReturn hook", () => {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { rest } from "msw"
|
||||
import { server } from "../../../../mocks/server"
|
||||
import { useShippingOptions, useCartShippingOptions } from "../../../../src/"
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { fixtures } from "../../../../mocks/data"
|
||||
import { server } from "../../../../mocks/server"
|
||||
import { useCartShippingOptions, useShippingOptions } from "../../../../src/"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("useShippingOptions hook", () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useCreateSwap } from "../../../../src/"
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { fixtures } from "../../../../mocks/data"
|
||||
import { useCreateSwap } from "../../../../src/"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("useCreateSwap hook", () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useCartSwap } from "../../../../src/"
|
||||
import { renderHook } from "@testing-library/react-hooks"
|
||||
import { renderHook } from "@testing-library/react-hooks/dom"
|
||||
import { fixtures } from "../../../../mocks/data"
|
||||
import { useCartSwap } from "../../../../src/"
|
||||
import { createWrapper } from "../../../utils"
|
||||
|
||||
describe("useCartSwap hook", () => {
|
||||
|
||||
Reference in New Issue
Block a user