@tramvai/test-integration 2.26.2 → 2.28.0
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.es.js +8 -1
- package/lib/index.js +8 -1
- package/package.json +3 -3
package/lib/index.es.js
CHANGED
|
@@ -102,7 +102,14 @@ const startCli = async (targetOrConfig, { enableRebuild = false, env, logger = c
|
|
|
102
102
|
throw e;
|
|
103
103
|
}
|
|
104
104
|
const request = requestFactory(serverUrl);
|
|
105
|
-
const render = renderFactory(request
|
|
105
|
+
const render = renderFactory(request, {
|
|
106
|
+
replaceDynamicStrings: {
|
|
107
|
+
// eslint-disable-next-line no-template-curly-in-string
|
|
108
|
+
[serverUrl]: '${SERVER_URL}',
|
|
109
|
+
// eslint-disable-next-line no-template-curly-in-string
|
|
110
|
+
[staticUrl]: '${STATIC_URL}',
|
|
111
|
+
},
|
|
112
|
+
});
|
|
106
113
|
const papi = wrapPapi({
|
|
107
114
|
serverUrl,
|
|
108
115
|
appName,
|
package/lib/index.js
CHANGED
|
@@ -110,7 +110,14 @@ const startCli = async (targetOrConfig, { enableRebuild = false, env, logger = c
|
|
|
110
110
|
throw e;
|
|
111
111
|
}
|
|
112
112
|
const request = testHelpers.requestFactory(serverUrl);
|
|
113
|
-
const render = testHelpers.renderFactory(request
|
|
113
|
+
const render = testHelpers.renderFactory(request, {
|
|
114
|
+
replaceDynamicStrings: {
|
|
115
|
+
// eslint-disable-next-line no-template-curly-in-string
|
|
116
|
+
[serverUrl]: '${SERVER_URL}',
|
|
117
|
+
// eslint-disable-next-line no-template-curly-in-string
|
|
118
|
+
[staticUrl]: '${STATIC_URL}',
|
|
119
|
+
},
|
|
120
|
+
});
|
|
114
121
|
const papi = wrapPapi({
|
|
115
122
|
serverUrl,
|
|
116
123
|
appName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/test-integration",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.28.0",
|
|
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.1",
|
|
25
|
-
"@tramvai/test-helpers": "2.
|
|
25
|
+
"@tramvai/test-helpers": "2.28.0",
|
|
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.28.0",
|
|
34
34
|
"tslib": "^2.4.0"
|
|
35
35
|
},
|
|
36
36
|
"license": "Apache-2.0",
|