plugins.tsx 556 B

12345678910111213141516171819202122232425
  1. import {PluginFixture} from 'sentry-fixture/plugin';
  2. import type {Plugin} from 'sentry/types/integrations';
  3. export function PluginsFixture(params: Plugin[] = []): Plugin[] {
  4. return [
  5. PluginFixture(),
  6. PluginFixture({
  7. enabled: true,
  8. id: 'github',
  9. name: 'GitHub',
  10. slug: 'github',
  11. canDisable: false,
  12. hasConfiguration: false,
  13. }),
  14. PluginFixture({
  15. enabled: false,
  16. isHidden: true,
  17. name: 'Hidden Plugin',
  18. slug: 'hidden-plugin',
  19. id: 'hidden-plugin',
  20. }),
  21. ...params,
  22. ];
  23. }