frame.tsx 542 B

1234567891011121314151617181920212223
  1. import type {Frame} from 'sentry/types/event';
  2. export function FrameFixture(props: Partial<Frame> = {}): Frame {
  3. return {
  4. absPath: 'abs/path/to/file.js',
  5. colNo: null,
  6. lineNo: null,
  7. context: [],
  8. filename: 'file.js',
  9. function: 'functionName',
  10. inApp: true,
  11. instructionAddr: '0x0000000',
  12. module: 'abs.path.to:file',
  13. package: null,
  14. platform: 'javascript',
  15. rawFunction: 'functionName',
  16. symbol: 'functionName',
  17. symbolAddr: '0x0000000',
  18. trust: 'none',
  19. vars: {},
  20. ...props,
  21. };
  22. }