import {ImageFixture} from 'sentry-fixture/image'; import type {Entry, EntryDebugMeta, EntryRequest} from 'sentry/types/event'; import {EntryType} from 'sentry/types/event'; export function EventEntryFixture(params = {}): Entry { return { type: EntryType.MESSAGE, data: { formatted: 'Blocked script', }, ...params, }; } export function EntryRequestFixture(params: Partial = {}): EntryRequest { return { type: EntryType.REQUEST, data: { apiTarget: null, method: 'GET', url: '/index', }, ...params, }; } export function EntryDebugMetaFixture( params: Partial = {} ): EntryDebugMeta { return { type: EntryType.DEBUGMETA, data: { images: [ImageFixture()], }, ...params, }; }