expo-router
Version:
Expo Router is a file-based router for React Native and web applications.
15 lines (13 loc) • 439 B
TypeScript
declare module 'expect/build/matchers' {
const matchers: any;
export default matchers;
}
declare namespace jest {
interface Matchers<R, T = unknown> {
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;
}
}