Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LauraBeatris/react-router-testing-utils
/ functions
Functions
11 in github.com/LauraBeatris/react-router-testing-utils
⨍
Functions
11
◇
Types & classes
5
↓ 9 callers
Function
renderInRouter
(Component: React.FC, { initialEntries = ['/'], renderOptions, shouldCheckHistory = false }: RenderInRou
src/hocs/renderInRouter.tsx:20
↓ 5 callers
Method
toHaveQueryParam
( expectedQueryParam: { name: string; value: any; type: import('serialize-query-
src/@types/jest.d.ts:3
↓ 1 callers
Function
encodeValues
({ type, name, value, locationSearch }: ExpectedQueryParam & { locationSearch: Location['search'], }
src/matchers/toHaveQueryParam/helpers.ts:39
↓ 1 callers
Function
validateArguments
({ name, type, locationSearch, encodedReceivedValue }: Pick<ExpectedQueryParam, 'type' | 'name'> & {
src/matchers/toHaveQueryParam/helpers.ts:15
↓ 1 callers
Function
validateValues
({ name, value, encodedExpectedValue, encodedReceivedValue, decodedReceivedValue }: Pick<ExpectedQue
src/matchers/toHaveQueryParam/helpers.ts:62
Function
ExampleAboutPage
()
src/__tests__/appExample/index.tsx:24
Function
ExampleAppRoutes
()
src/__tests__/appExample/index.tsx:60
Function
ExampleHomePage
()
src/__tests__/appExample/index.tsx:32
Function
ExampleQueryParamsPage
()
src/__tests__/appExample/index.tsx:9
Method
constructor
({ pass, message }: CustomMatcherMessagePayload)
src/matchers/message.ts:11
Function
toHaveQueryParam
( locationSearch: Location['search'], { name, type, value }: ExpectedQueryParam )
src/matchers/toHaveQueryParam/index.ts:20