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