@tramvai/test-integration 2.40.0 → 2.44.2
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/startCli.d.ts +1 -1
- package/lib/app/types.d.ts +2 -2
- package/lib/app/utils.d.ts +1 -1
- package/package.json +3 -3
package/lib/app/startCli.d.ts
CHANGED
|
@@ -54,4 +54,4 @@ export declare const startCli: (targetOrConfig: StartOptions['target'] | StartOp
|
|
|
54
54
|
server?: import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse> | undefined;
|
|
55
55
|
builder: import("@tramvai/cli/lib/typings/build/Builder").Builder<any>;
|
|
56
56
|
}>;
|
|
57
|
-
export
|
|
57
|
+
export type StartCliResult = PromiseType<ReturnType<typeof startCli>>;
|
package/lib/app/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { start } from '@tramvai/cli';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
type UnionToIntersection<T> = (T extends any ? (x: T) => any : never) extends (x: infer R) => any ? R : never;
|
|
3
|
+
export type StartOptions = UnionToIntersection<Parameters<typeof start>[0]>;
|
|
4
4
|
export {};
|
package/lib/app/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PromiseType } from 'utility-types';
|
|
2
2
|
import type { start } from '@tramvai/cli';
|
|
3
3
|
import type { StartCliOptions } from './startCli';
|
|
4
|
-
|
|
4
|
+
type CliResult = PromiseType<ReturnType<typeof start>>;
|
|
5
5
|
export declare const getServerUrl: ({ server }: CliResult) => string;
|
|
6
6
|
export declare const getStaticUrl: ({ staticServer }: CliResult) => string;
|
|
7
7
|
export declare const getUtilityServerUrl: (env: StartCliOptions['env'], { server }: CliResult) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/test-integration",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.44.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@tinkoff/mocker": "2.1.2",
|
|
25
|
-
"@tramvai/test-helpers": "2.
|
|
25
|
+
"@tramvai/test-helpers": "2.44.2",
|
|
26
26
|
"@types/supertest": "^2.0.11",
|
|
27
27
|
"supertest": "^6.1.3",
|
|
28
28
|
"utility-types": "^3.10.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@tinkoff/utils": "^2.1.2",
|
|
33
|
-
"@tramvai/cli": "2.
|
|
33
|
+
"@tramvai/cli": "2.44.2",
|
|
34
34
|
"tslib": "^2.4.0"
|
|
35
35
|
},
|
|
36
36
|
"license": "Apache-2.0",
|