mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
24 lines
536 B
TypeScript
24 lines
536 B
TypeScript
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,
|
|
};
|
|
}
|