@nu-art/ts-common 0.102.87 → 0.102.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/testing/test-case.d.ts +10 -0
package/package.json
CHANGED
package/testing/test-case.d.ts
CHANGED
|
@@ -12,3 +12,13 @@ export type TestSuit<Model extends TestCase<any, any>> = {
|
|
|
12
12
|
export declare function runTestSuits(testSuits: TestSuit<any>[]): Promise<void>;
|
|
13
13
|
export declare function runTestSuit<Model extends TestCase<any, any>>(testSuit: TestSuit<Model>): Promise<void>;
|
|
14
14
|
export declare function assertNoTestErrors(): void;
|
|
15
|
+
export type TestModel_V2<Input, ExpectedResult> = {
|
|
16
|
+
description: string;
|
|
17
|
+
result: ExpectedResult;
|
|
18
|
+
input: Input;
|
|
19
|
+
};
|
|
20
|
+
export type TestSuit_V2<Input, ExpectedResult> = {
|
|
21
|
+
processor: (input: Input) => ExpectedResult;
|
|
22
|
+
testcases: TestModel_V2<Input, ExpectedResult>[];
|
|
23
|
+
label: string;
|
|
24
|
+
};
|