UNPKG

expo-router

Version:

Expo Router is a file-based router for React Native and web applications.

18 lines (17 loc) • 545 B
export interface RouterMatchers<R> { toHavePathname(pathname: string): R; toHavePathnameWithParams(pathname: string): R; toHaveSegments(segments: string[]): R; toHaveSearchParams(params: Record<string, string | string[]>): R; toHaveRouterState(state: Record<string, unknown> | undefined): R; } declare global { namespace jest { interface Matchers<R> extends RouterMatchers<R> { } } } declare module 'expect' { interface Matchers<R extends void | Promise<void>> extends RouterMatchers<R> { } }