UNPKG

@testing-library/react-native

Version:

Simple and complete React Native testing utilities that encourage good testing practices.

10 lines (9 loc) 519 B
/** * Validates that no unknown options are passed to a function. * Logs a warning if unknown options are found. * * @param functionName - The name of the function being called (for error messages) * @param restOptions - The rest object from destructuring that contains unknown options * @param callsite - The function where the validation is called from (e.g., render, renderHook) */ export declare function validateOptions(functionName: string, restOptions: Record<string, unknown>, callsite: Function): void;