saleor-dashboard/testUtils/setup.ts
Patryk Andrzejewski c4f6a18d38
Remove snapshots (#2754)
* Remove snapshots

* Remove setup file

* Keep config
2022-12-02 12:58:43 +01:00

14 lines
444 B
TypeScript

import { configure } from "@testing-library/react";
document.getElementById = () => document.createElement("div");
window.__SALEOR_CONFIG__ = {
API_URL: "http://localhost:8000/graphql/",
APP_MOUNT_URI: "/",
MARKETPLACE_URL: "http//localhost:3000",
SALEOR_APPS_PAGE_PATH: "/saleor-apps",
SALEOR_APPS_JSON_PATH: "/api/saleor-apps",
APP_TEMPLATE_GALLERY_PATH: "/template-gallery",
};
configure({ testIdAttribute: "data-test-id" });