
* Add new Apps List * Update apps routing * Add marketplace apps list * Update apps urls * Update app list style * Add installed apps section * Update apps sections and connect actions with mutations * Add latest missing buttons and labels to installed apps list * Update installed apps list * Update installed apps list * Add tests and marketplace error handling * Update environment configuration * Update GitHub actions env configuration * Refactor AppListCard component * Test InstallWithManifestFormButton * Test AppListCard * Extract InstalledAppListRow with tests * Update GitHub actions env configuration * Tests of apps dialogs * Update GitHub actions env configuration * Update messages * Update GitHub actions env configuration * Quote untrusted GitHub actions variables * Change useFetch to useMarketplaceApps and add tests * Fix strict null check errors * Refactor apps details components * Add strict null checks for /new-apps/ components
20 lines
614 B
TypeScript
20 lines
614 B
TypeScript
import "@testing-library/jest-dom";
|
|
|
|
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",
|
|
APPS_MARKETPLACE_API_URI: "http://localhost:3000",
|
|
APPS_TUNNEL_URL_KEYWORDS: ".ngrok.io;.saleor.live",
|
|
};
|
|
|
|
process.env.TZ = "UTC";
|
|
|
|
configure({ testIdAttribute: "data-test-id" });
|