@tramvai/test-integration 5.49.1 → 5.53.74
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/lib/app/papi.d.ts
CHANGED
|
@@ -8,16 +8,16 @@ export declare const wrapPapi: ({ serverUrl, appName }: Options) => {
|
|
|
8
8
|
body?: Record<string, any> | undefined;
|
|
9
9
|
contentType?: "json" | "form" | undefined;
|
|
10
10
|
headers?: Record<string, string> | undefined;
|
|
11
|
-
} | undefined) =>
|
|
11
|
+
} | undefined) => supertest.SuperTestStatic.Test;
|
|
12
12
|
privatePapi: (path: string, { method, body, contentType, headers, }?: {
|
|
13
13
|
method?: "get" | "post" | "put" | "delete" | undefined;
|
|
14
14
|
body?: Record<string, any> | undefined;
|
|
15
15
|
contentType?: "json" | "form" | undefined;
|
|
16
16
|
headers?: Record<string, string> | undefined;
|
|
17
|
-
} | undefined) =>
|
|
18
|
-
clearCache: () =>
|
|
19
|
-
bundleInfo: () =>
|
|
20
|
-
apiList: () =>
|
|
17
|
+
} | undefined) => supertest.SuperTestStatic.Test;
|
|
18
|
+
clearCache: () => any;
|
|
19
|
+
bundleInfo: () => any;
|
|
20
|
+
apiList: () => any;
|
|
21
21
|
};
|
|
22
22
|
export {};
|
|
23
23
|
//# sourceMappingURL=papi.d.ts.map
|
package/lib/app/startCli.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare const startCli: (targetOrConfig: StartOptions['target'] | StartOp
|
|
|
19
19
|
body?: Record<string, any> | undefined;
|
|
20
20
|
contentType?: "json" | "form" | undefined;
|
|
21
21
|
headers?: Record<string, string> | undefined;
|
|
22
|
-
} | undefined) =>
|
|
22
|
+
} | undefined) => supertest.SuperTestStatic.Test;
|
|
23
23
|
render: (path: string, { method, headers, parserOptions, }?: {
|
|
24
24
|
method?: "get" | "post" | "put" | undefined;
|
|
25
25
|
headers?: Record<string, string> | undefined;
|
|
@@ -37,16 +37,16 @@ export declare const startCli: (targetOrConfig: StartOptions['target'] | StartOp
|
|
|
37
37
|
body?: Record<string, any> | undefined;
|
|
38
38
|
contentType?: "json" | "form" | undefined;
|
|
39
39
|
headers?: Record<string, string> | undefined;
|
|
40
|
-
} | undefined) =>
|
|
40
|
+
} | undefined) => supertest.SuperTestStatic.Test;
|
|
41
41
|
privatePapi: (path: string, { method, body, contentType, headers, }?: {
|
|
42
42
|
method?: "get" | "post" | "put" | "delete" | undefined;
|
|
43
43
|
body?: Record<string, any> | undefined;
|
|
44
44
|
contentType?: "json" | "form" | undefined;
|
|
45
45
|
headers?: Record<string, string> | undefined;
|
|
46
|
-
} | undefined) =>
|
|
47
|
-
clearCache: () =>
|
|
48
|
-
bundleInfo: () =>
|
|
49
|
-
apiList: () =>
|
|
46
|
+
} | undefined) => supertest.SuperTestStatic.Test;
|
|
47
|
+
clearCache: () => any;
|
|
48
|
+
bundleInfo: () => any;
|
|
49
|
+
apiList: () => any;
|
|
50
50
|
};
|
|
51
51
|
mocker: {
|
|
52
52
|
addMocks(api: string, mocks: Record<string, import("@tinkoff/mocker").MockConfig>): Promise<any>;
|
|
@@ -13,7 +13,7 @@ export declare const runFakeApp: (config: Partial<StartOptions['config']>, optio
|
|
|
13
13
|
body?: Record<string, any> | undefined;
|
|
14
14
|
contentType?: "json" | "form" | undefined;
|
|
15
15
|
headers?: Record<string, string> | undefined;
|
|
16
|
-
} | undefined) =>
|
|
16
|
+
} | undefined) => supertest.SuperTestStatic.Test;
|
|
17
17
|
render: (path: string, { method, headers, parserOptions, }?: {
|
|
18
18
|
method?: "get" | "post" | "put" | undefined;
|
|
19
19
|
headers?: Record<string, string> | undefined;
|
|
@@ -31,16 +31,16 @@ export declare const runFakeApp: (config: Partial<StartOptions['config']>, optio
|
|
|
31
31
|
body?: Record<string, any> | undefined;
|
|
32
32
|
contentType?: "json" | "form" | undefined;
|
|
33
33
|
headers?: Record<string, string> | undefined;
|
|
34
|
-
} | undefined) =>
|
|
34
|
+
} | undefined) => supertest.SuperTestStatic.Test;
|
|
35
35
|
privatePapi: (path: string, { method, body, contentType, headers, }?: {
|
|
36
36
|
method?: "get" | "post" | "put" | "delete" | undefined;
|
|
37
37
|
body?: Record<string, any> | undefined;
|
|
38
38
|
contentType?: "json" | "form" | undefined;
|
|
39
39
|
headers?: Record<string, string> | undefined;
|
|
40
|
-
} | undefined) =>
|
|
41
|
-
clearCache: () =>
|
|
42
|
-
bundleInfo: () =>
|
|
43
|
-
apiList: () =>
|
|
40
|
+
} | undefined) => supertest.SuperTestStatic.Test;
|
|
41
|
+
clearCache: () => any;
|
|
42
|
+
bundleInfo: () => any;
|
|
43
|
+
apiList: () => any;
|
|
44
44
|
};
|
|
45
45
|
mocker: {
|
|
46
46
|
addMocks(api: string, mocks: Record<string, import("@tinkoff/mocker").MockConfig>): Promise<any>;
|
|
@@ -12,7 +12,7 @@ export declare const runRealApp: (tramvaiConfigRoot: string, appName: string, op
|
|
|
12
12
|
body?: Record<string, any> | undefined;
|
|
13
13
|
contentType?: "json" | "form" | undefined;
|
|
14
14
|
headers?: Record<string, string> | undefined;
|
|
15
|
-
} | undefined) =>
|
|
15
|
+
} | undefined) => supertest.SuperTestStatic.Test;
|
|
16
16
|
render: (path: string, { method, headers, parserOptions, }?: {
|
|
17
17
|
method?: "get" | "post" | "put" | undefined;
|
|
18
18
|
headers?: Record<string, string> | undefined;
|
|
@@ -30,16 +30,16 @@ export declare const runRealApp: (tramvaiConfigRoot: string, appName: string, op
|
|
|
30
30
|
body?: Record<string, any> | undefined;
|
|
31
31
|
contentType?: "json" | "form" | undefined;
|
|
32
32
|
headers?: Record<string, string> | undefined;
|
|
33
|
-
} | undefined) =>
|
|
33
|
+
} | undefined) => supertest.SuperTestStatic.Test;
|
|
34
34
|
privatePapi: (path: string, { method, body, contentType, headers, }?: {
|
|
35
35
|
method?: "get" | "post" | "put" | "delete" | undefined;
|
|
36
36
|
body?: Record<string, any> | undefined;
|
|
37
37
|
contentType?: "json" | "form" | undefined;
|
|
38
38
|
headers?: Record<string, string> | undefined;
|
|
39
|
-
} | undefined) =>
|
|
40
|
-
clearCache: () =>
|
|
41
|
-
bundleInfo: () =>
|
|
42
|
-
apiList: () =>
|
|
39
|
+
} | undefined) => supertest.SuperTestStatic.Test;
|
|
40
|
+
clearCache: () => any;
|
|
41
|
+
bundleInfo: () => any;
|
|
42
|
+
apiList: () => any;
|
|
43
43
|
};
|
|
44
44
|
mocker: {
|
|
45
45
|
addMocks(api: string, mocks: Record<string, import("@tinkoff/mocker").MockConfig>): Promise<any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/test-integration",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.53.74",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
"@types/wait-on": "^5.2.0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@tinkoff/mocker": "5.0.
|
|
24
|
-
"@tramvai/test-helpers": "5.
|
|
23
|
+
"@tinkoff/mocker": "5.0.5",
|
|
24
|
+
"@tramvai/test-helpers": "5.53.74",
|
|
25
25
|
"env-ci": "^5.0.2",
|
|
26
26
|
"utility-types": "^3.10.0",
|
|
27
27
|
"wait-on": "^5.3.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@tinkoff/utils": "^2.1.2",
|
|
31
|
-
"@tramvai/cli": "5.
|
|
31
|
+
"@tramvai/cli": "5.53.74",
|
|
32
32
|
"tslib": "^2.4.0"
|
|
33
33
|
},
|
|
34
34
|
"license": "Apache-2.0",
|