import testInput from './testInput'; const createTestInputFunction = ( tests: InputTestBatches, { excludeTestIds: defaultExcludeTestIds = [], ...restDefaultOptions }: Omit = {}, ) => ({ excludeTestIds = [], ...restOptions }: Parameters[0] = {}): ReturnType => testInput({ tests, excludeTestIds: [...defaultExcludeTestIds, ...excludeTestIds], ...restDefaultOptions, ...restOptions, }); export default createTestInputFunction;