dynamic-plugin-sdk.tsx 678 B

12345678910111213141516
  1. /*
  2. * A majority of the OpenShift Console's dynamic plugin SDK components and API
  3. * implementations are only available at runtime as they are provided using
  4. * module federation.
  5. *
  6. * As a result, no implementations of these components and APIs are available
  7. * when running tests in your plugin.
  8. *
  9. * To workaround this, you may add minimal stub implementations of components
  10. * and APIs you use in your plugin here to allow your tests to run.
  11. */
  12. import type * as SDK from '@openshift-console/dynamic-plugin-sdk';
  13. export const ListPageHeader: typeof SDK.ListPageHeader = ({ title }) => <h1>{title}</h1>;
  14. export const DocumentTitle: typeof SDK.DocumentTitle = () => null;