next-page-tester
Version:
Enable DOM integration testing on Next.js pages
12 lines (11 loc) • 367 B
TypeScript
import type { ExtendedOptions, PageParams } from '../../commonTypes';
/**
* Parse tested route against existing page paths.
* @returns path of matching page file and the object of matching params
*/
export default function parseMatchingRoute({ options, }: {
options: ExtendedOptions;
}): Promise<{
pagePath: string;
params: PageParams;
} | undefined>;