MCPcopy Index your code
hub / github.com/getsentry/sentry / LocationFixture

Function LocationFixture

tests/js/fixtures/locationFixture.ts:3–14  ·  view source on GitHub ↗
(params: Partial<Location> = {})

Source from the content-addressed store, hash-verified

1import type {Location} from 'history';
2
3export function LocationFixture(params: Partial<Location> = {}): Location {
4 return {
5 key: '',
6 search: '',
7 hash: '',
8 action: 'PUSH',
9 state: null,
10 query: {},
11 pathname: '/mock-pathname/',
12 ...params,
13 };
14}

Calls

no outgoing calls

Tested by 15

renderProjectChartsFunction · 0.72
renderFilterBarFunction · 0.72
makeBaggageFunction · 0.72
WrappedComponentFunction · 0.72
initializeDataFunction · 0.72
locationFixtureFunction · 0.72
createWrapperFunction · 0.72
createWrapperFunction · 0.72
renderHeaderFunction · 0.72
locationFixtureFunction · 0.72
getPropsFunction · 0.72