@puq/testing
Version:
The library offers a collection of robust utilities designed to enhance test quality, streamline testing processes, and minimize the time and effort required for effective test implementation.
9 lines • 492 B
TypeScript
import type { SomeRecord, Type } from '@puq/type';
/**
* Transform and validate value by instance. And check the `expectedErrors` matches with the `actualErrors`
* @param targetClass - target class
* @param targetValue - target value
* @param expectedErrors - list of constraints to be expected
*/
export declare function transformAndValidate<T>(targetClass: Type, targetValue: SomeRecord<T>, expectedErrors: string[]): Promise<void>;
//# sourceMappingURL=transform-and-validate.d.ts.map