1234567891011121314151617181920212223 |
- import type {Frame} from 'sentry/types';
- export function FrameFixture(props: Partial<Frame> = {}): Frame {
- return {
- absPath: 'abs/path/to/file.js',
- colNo: null,
- lineNo: null,
- context: [],
- filename: 'file.js',
- function: 'functionName',
- inApp: true,
- instructionAddr: '0x0000000',
- module: 'abs.path.to:file',
- package: null,
- platform: 'javascript',
- rawFunction: 'functionName',
- symbol: 'functionName',
- symbolAddr: '0x0000000',
- trust: 'none',
- vars: {},
- ...props,
- };
- }
|