@ni/jasmine-parameterized 0.2.2 → 0.2.4
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.
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="jasmine" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
type Fit = typeof fit;
|
|
3
|
+
type Xit = typeof xit;
|
|
4
|
+
type It = typeof it;
|
|
5
5
|
/**
|
|
6
6
|
* One of the jasmine spec functions: fit, xit, or it
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
type Spec = Fit | Xit | It;
|
|
9
9
|
/**
|
|
10
10
|
* One of the jasmine spec functions: fit or xit
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
type SpecOverride = Fit | Xit;
|
|
13
13
|
/**
|
|
14
14
|
* Used to create a parameterized test using an object of test names and arbitrary test values.
|
|
15
15
|
* In the following example:
|
|
@@ -34,7 +34,7 @@ declare type SpecOverride = Fit | Xit;
|
|
|
34
34
|
* });
|
|
35
35
|
*/
|
|
36
36
|
export declare const parameterize: <T extends object>(testCases: T, test: (spec: Spec, name: keyof T, value: T[keyof T]) => void, specOverrides?: { [P in keyof T]?: SpecOverride | undefined; } | undefined) => void;
|
|
37
|
-
|
|
37
|
+
type ObjectFromNamedList<T extends readonly {
|
|
38
38
|
name: string;
|
|
39
39
|
}[]> = {
|
|
40
40
|
[K in T extends readonly {
|
|
@@ -68,5 +68,5 @@ export declare const parameterizeSpec: <T extends readonly {
|
|
|
68
68
|
name: string;
|
|
69
69
|
}[]>(list: T, test: (spec: Spec, name: T extends readonly {
|
|
70
70
|
name: infer U;
|
|
71
|
-
}[] ? U : never, value: T[number]) => void, specOverrides?:
|
|
71
|
+
}[] ? U : never, value: T[number]) => void, specOverrides?: { [P in keyof ObjectFromNamedList<T>]?: SpecOverride | undefined; } | undefined) => void;
|
|
72
72
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/jasmine-parameterized",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "A utility to write parameterized jasmine tests",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jasmine",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@ni/eslint-config-javascript": "^4.2.0",
|
|
46
46
|
"@ni/eslint-config-typescript": "^4.2.0",
|
|
47
|
-
"@types/jasmine": "^
|
|
48
|
-
"jasmine": "^
|
|
49
|
-
"jasmine-core": "^
|
|
47
|
+
"@types/jasmine": "^5.1.4",
|
|
48
|
+
"jasmine": "^5.1.0",
|
|
49
|
+
"jasmine-core": "^5.1.2",
|
|
50
50
|
"karma": "^6.3.0",
|
|
51
51
|
"karma-jasmine": "^5.1.0",
|
|
52
52
|
"karma-jasmine-html-reporter": "^2.0.0",
|
|
53
53
|
"karma-spec-reporter": "^0.0.36",
|
|
54
|
-
"playwright": "
|
|
55
|
-
"typescript": "~
|
|
54
|
+
"playwright": "1.42.0",
|
|
55
|
+
"typescript": "~5.1.6"
|
|
56
56
|
}
|
|
57
57
|
}
|