@tramvai/test-integration 2.39.0 → 2.39.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/mocker.d.ts +5 -2
- package/lib/app/startCli.d.ts +4 -1
- package/lib/app/startCliFakeApp.d.ts +4 -1
- package/lib/app/startCliRealApp.d.ts +4 -1
- package/lib/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +3 -3
package/lib/app/mocker.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MockConfig } from '@tinkoff/mocker';
|
|
2
2
|
import type { wrapPapi } from './papi';
|
|
3
3
|
interface Options {
|
|
4
4
|
papi: ReturnType<typeof wrapPapi>;
|
|
5
5
|
}
|
|
6
|
-
export declare const wrapMocker: ({ papi }: Options) =>
|
|
6
|
+
export declare const wrapMocker: ({ papi, }: Options) => {
|
|
7
|
+
addMocks(api: string, mocks: Record<string, MockConfig>): Promise<any>;
|
|
8
|
+
removeMocks(api: string, mocks: string[]): Promise<any>;
|
|
9
|
+
};
|
|
7
10
|
export {};
|
package/lib/app/startCli.d.ts
CHANGED
|
@@ -43,7 +43,10 @@ export declare const startCli: (targetOrConfig: StartOptions['target'] | StartOp
|
|
|
43
43
|
clearCache: () => import("supertest").Test;
|
|
44
44
|
bundleInfo: () => import("supertest").Test;
|
|
45
45
|
};
|
|
46
|
-
mocker:
|
|
46
|
+
mocker: {
|
|
47
|
+
addMocks(api: string, mocks: Record<string, import("@tinkoff/mocker").MockConfig>): Promise<any>;
|
|
48
|
+
removeMocks(api: string, mocks: string[]): Promise<any>;
|
|
49
|
+
};
|
|
47
50
|
close: (() => Promise<void>) & (() => Promise<void>);
|
|
48
51
|
invalidate: () => Promise<void>;
|
|
49
52
|
getBuildStats: import("@tramvai/cli/lib/typings/build/Builder").GetBuildStats;
|
|
@@ -37,7 +37,10 @@ export declare const runFakeApp: (config: Partial<StartOptions['config']>, optio
|
|
|
37
37
|
clearCache: () => import("supertest").Test;
|
|
38
38
|
bundleInfo: () => import("supertest").Test;
|
|
39
39
|
};
|
|
40
|
-
mocker:
|
|
40
|
+
mocker: {
|
|
41
|
+
addMocks(api: string, mocks: Record<string, import("@tinkoff/mocker").MockConfig>): Promise<any>;
|
|
42
|
+
removeMocks(api: string, mocks: string[]): Promise<any>;
|
|
43
|
+
};
|
|
41
44
|
close: (() => Promise<void>) & (() => Promise<void>);
|
|
42
45
|
invalidate: () => Promise<void>;
|
|
43
46
|
getBuildStats: import("@tramvai/cli/lib/typings/build/Builder").GetBuildStats;
|
|
@@ -36,7 +36,10 @@ export declare const runRealApp: (tramvaiConfigRoot: string, appName: string, op
|
|
|
36
36
|
clearCache: () => import("supertest").Test;
|
|
37
37
|
bundleInfo: () => import("supertest").Test;
|
|
38
38
|
};
|
|
39
|
-
mocker:
|
|
39
|
+
mocker: {
|
|
40
|
+
addMocks(api: string, mocks: Record<string, import("@tinkoff/mocker").MockConfig>): Promise<any>;
|
|
41
|
+
removeMocks(api: string, mocks: string[]): Promise<any>;
|
|
42
|
+
};
|
|
40
43
|
close: (() => Promise<void>) & (() => Promise<void>);
|
|
41
44
|
invalidate: () => Promise<void>;
|
|
42
45
|
getBuildStats: import("@tramvai/cli/lib/typings/build/Builder").GetBuildStats;
|
package/lib/index.es.js
CHANGED
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/test-integration",
|
|
3
|
-
"version": "2.39.
|
|
3
|
+
"version": "2.39.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.39.
|
|
25
|
+
"@tramvai/test-helpers": "2.39.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.39.
|
|
33
|
+
"@tramvai/cli": "2.39.2",
|
|
34
34
|
"tslib": "^2.4.0"
|
|
35
35
|
},
|
|
36
36
|
"license": "Apache-2.0",
|