autofixStep.tsx 386 B

1234567891011121314151617
  1. import {
  2. AutofixDefaultStep,
  3. AutofixStep,
  4. AutofixStepType,
  5. } from 'sentry/components/events/autofix/types';
  6. export function AutofixStepFixture(params: Partial<AutofixStep>): AutofixStep {
  7. return {
  8. type: AutofixStepType.DEFAULT,
  9. id: '1',
  10. index: 1,
  11. title: 'I am processing',
  12. status: 'PROCESSING',
  13. progress: [],
  14. ...params,
  15. } as AutofixDefaultStep;
  16. }