@tramvai/test-integration 1.8.7 → 1.9.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/index.js +3 -3
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -23,8 +23,8 @@ const getStaticUrl = ({ staticServer }) => {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
const wrapPapi = ({ serverUrl, appName }) => {
|
|
26
|
-
const publicPapi = supertest__default[
|
|
27
|
-
const privatePapi = supertest__default[
|
|
26
|
+
const publicPapi = supertest__default["default"](`${serverUrl}/${appName}/papi/`);
|
|
27
|
+
const privatePapi = supertest__default["default"](`${serverUrl}/${appName}/private/papi/`);
|
|
28
28
|
return {
|
|
29
29
|
publicPapi,
|
|
30
30
|
privatePapi,
|
|
@@ -94,7 +94,7 @@ const startCli = async (targetOrConfig, { enableRebuild = false, env, ...cliOpti
|
|
|
94
94
|
const staticUrl = getStaticUrl(cliResult);
|
|
95
95
|
const appName = typeof targetOrConfig === 'string' ? targetOrConfig : targetOrConfig.name;
|
|
96
96
|
try {
|
|
97
|
-
await waitOn__default[
|
|
97
|
+
await waitOn__default["default"]({
|
|
98
98
|
resources: [`${serverUrl}/readyz`],
|
|
99
99
|
});
|
|
100
100
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/test-integration",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.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": "1.5.2",
|
|
25
|
-
"@tramvai/test-helpers": "1.
|
|
25
|
+
"@tramvai/test-helpers": "1.9.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": "1.
|
|
33
|
+
"@tramvai/cli": "1.9.2",
|
|
34
34
|
"tslib": "^2.0.3"
|
|
35
35
|
},
|
|
36
36
|
"license": "Apache-2.0",
|