|
|
@ -2,13 +2,26 @@ import testInput from './testInput'; |
|
|
|
import { |
|
|
|
import { |
|
|
|
InputTestBatches, |
|
|
|
InputTestBatches, |
|
|
|
TestInputFunction, |
|
|
|
TestInputFunction, |
|
|
|
|
|
|
|
TestInputFunctionOptions, |
|
|
|
} from '../../types/TestInputFunction'; |
|
|
|
} from '../../types/TestInputFunction'; |
|
|
|
|
|
|
|
|
|
|
|
const createTestInputFunction = |
|
|
|
const createTestInputFunction = |
|
|
|
(tests: InputTestBatches) => |
|
|
|
|
|
|
|
( |
|
|
|
( |
|
|
|
...[options, ...restArgs]: Parameters<TestInputFunction> |
|
|
|
tests: InputTestBatches, |
|
|
|
): ReturnType<TestInputFunction> => |
|
|
|
{ |
|
|
|
testInput({ tests, ...options }, ...restArgs); |
|
|
|
excludeTestIds: defaultExcludeTestIds = [], |
|
|
|
|
|
|
|
...restDefaultOptions |
|
|
|
|
|
|
|
}: Omit<TestInputFunctionOptions, 'inputs' | 'tests'> = {}, |
|
|
|
|
|
|
|
) => |
|
|
|
|
|
|
|
({ |
|
|
|
|
|
|
|
excludeTestIds = [], |
|
|
|
|
|
|
|
...restOptions |
|
|
|
|
|
|
|
}: Parameters<TestInputFunction>[0] = {}): ReturnType<TestInputFunction> => |
|
|
|
|
|
|
|
testInput({ |
|
|
|
|
|
|
|
tests, |
|
|
|
|
|
|
|
excludeTestIds: [...defaultExcludeTestIds, ...excludeTestIds], |
|
|
|
|
|
|
|
...restDefaultOptions, |
|
|
|
|
|
|
|
...restOptions, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
export default createTestInputFunction; |
|
|
|
export default createTestInputFunction; |
|
|
|