feat(admin,admin-ui,medusa): Add Medusa Admin plugin (#3334)

This commit is contained in:
Kasper Fabricius Kristensen
2023-03-03 10:09:16 +01:00
committed by GitHub
parent d6b1ad1ccd
commit 40de54b010
928 changed files with 85441 additions and 384 deletions
@@ -1,10 +1,10 @@
import { RefundReason } from "@medusajs/medusa"
import { renderHook } from "@testing-library/react-hooks/dom"
import {
useAdminPaymentsCapturePayment,
useAdminPaymentsRefundPayment,
} from "../../../../src"
import { renderHook } from "@testing-library/react-hooks"
import { createWrapper } from "../../../utils"
import { RefundReason } from "@medusajs/medusa"
describe("useAdminPaymentsCapturePayment hook", () => {
test("Capture a payment", 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 { useAdminPayment } from "../../../../src/hooks/admin/payments"
import { createWrapper } from "../../../utils"
describe("useAdminPayment hook", () => {
test("returns a payment collection", async () => {