@tramvai/test-integration 2.152.1 → 2.152.3
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.es.js +4 -0
- package/lib/app/startCli.js +4 -0
- package/package.json +3 -3
package/lib/app/startCli.es.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import mergeDeep from '@tinkoff/utils/object/mergeDeep';
|
|
2
2
|
import { Writable } from 'stream';
|
|
3
|
+
import { setDefaultResultOrder } from 'dns';
|
|
3
4
|
import envCi from 'env-ci';
|
|
4
5
|
import { start } from '@tramvai/cli';
|
|
5
6
|
import waitOn from 'wait-on';
|
|
@@ -9,6 +10,9 @@ export { getServerUrl, getStaticUrl, getUtilityServerUrl } from './utils.es.js';
|
|
|
9
10
|
import { wrapPapi } from './papi.es.js';
|
|
10
11
|
import { wrapMocker } from './mocker.es.js';
|
|
11
12
|
|
|
13
|
+
if (typeof setDefaultResultOrder === 'function') {
|
|
14
|
+
setDefaultResultOrder('ipv4first');
|
|
15
|
+
}
|
|
12
16
|
const ciInfo = envCi();
|
|
13
17
|
const startCli = async (targetOrConfig, { enableRebuild = false, env, logger = console, ...cliOptions } = {}) => {
|
|
14
18
|
var _a;
|
package/lib/app/startCli.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var mergeDeep = require('@tinkoff/utils/object/mergeDeep');
|
|
6
6
|
var stream = require('stream');
|
|
7
|
+
var dns = require('dns');
|
|
7
8
|
var envCi = require('env-ci');
|
|
8
9
|
var cli = require('@tramvai/cli');
|
|
9
10
|
var waitOn = require('wait-on');
|
|
@@ -18,6 +19,9 @@ var mergeDeep__default = /*#__PURE__*/_interopDefaultLegacy(mergeDeep);
|
|
|
18
19
|
var envCi__default = /*#__PURE__*/_interopDefaultLegacy(envCi);
|
|
19
20
|
var waitOn__default = /*#__PURE__*/_interopDefaultLegacy(waitOn);
|
|
20
21
|
|
|
22
|
+
if (typeof dns.setDefaultResultOrder === 'function') {
|
|
23
|
+
dns.setDefaultResultOrder('ipv4first');
|
|
24
|
+
}
|
|
21
25
|
const ciInfo = envCi__default["default"]();
|
|
22
26
|
const startCli = async (targetOrConfig, { enableRebuild = false, env, logger = console, ...cliOptions } = {}) => {
|
|
23
27
|
var _a;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/test-integration",
|
|
3
|
-
"version": "2.152.
|
|
3
|
+
"version": "2.152.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@tinkoff/mocker": "2.1.6",
|
|
24
|
-
"@tramvai/test-helpers": "2.152.
|
|
24
|
+
"@tramvai/test-helpers": "2.152.3",
|
|
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": "2.152.
|
|
31
|
+
"@tramvai/cli": "2.152.3",
|
|
32
32
|
"tslib": "^2.4.0"
|
|
33
33
|
},
|
|
34
34
|
"license": "Apache-2.0",
|