@tramvai/test-integration 7.21.1 → 7.26.8
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
CHANGED
|
@@ -38,10 +38,10 @@ export declare const startCli: (targetOrConfig: StartOptions['target'] | StartOp
|
|
|
38
38
|
parserOptions?: Partial<import("node-html-parser").Options> | undefined;
|
|
39
39
|
} | undefined) => Promise<{
|
|
40
40
|
initialState: any;
|
|
41
|
-
parsed:
|
|
42
|
-
body:
|
|
43
|
-
head:
|
|
44
|
-
application:
|
|
41
|
+
parsed: any;
|
|
42
|
+
body: any;
|
|
43
|
+
head: any;
|
|
44
|
+
application: any;
|
|
45
45
|
}>;
|
|
46
46
|
papi: {
|
|
47
47
|
publicPapi: (path: string, { method, body, contentType, headers, }?: {
|
package/lib/app/startCli.es.js
CHANGED
|
@@ -87,6 +87,8 @@ const startCli = async (targetOrConfig, { enableRebuild = false, env, logger = c
|
|
|
87
87
|
stderr,
|
|
88
88
|
noClientRebuild: !enableRebuild,
|
|
89
89
|
noServerRebuild: !enableRebuild,
|
|
90
|
+
showBanner: false,
|
|
91
|
+
showProgress: false,
|
|
90
92
|
// build cache made tests unstable in CI, because of cache writing process are async,
|
|
91
93
|
// and there is no way to wait this process (`idleTimeoutForInitialStore: 0` helps sometimes, but no guarantees)
|
|
92
94
|
fileCache: !ciInfo.isCi,
|
|
@@ -98,6 +100,7 @@ const startCli = async (targetOrConfig, { enableRebuild = false, env, logger = c
|
|
|
98
100
|
config: mergeDeep({
|
|
99
101
|
// disable hot-refresh that may break checks for full page load because of never-ending request
|
|
100
102
|
hotRefresh: { enabled: false },
|
|
103
|
+
liveReload: false,
|
|
101
104
|
// faster builds
|
|
102
105
|
sourceMap: false,
|
|
103
106
|
// faster builds
|
|
@@ -110,11 +113,6 @@ const startCli = async (targetOrConfig, { enableRebuild = false, env, logger = c
|
|
|
110
113
|
'@tramvai-tinkoff/module-push-web',
|
|
111
114
|
],
|
|
112
115
|
},
|
|
113
|
-
// Playwright Inspector collects a stack trace for the ability to show in which file or step of the test a transition occurred
|
|
114
|
-
// internak stack trace utility uses process.cwd() to correctly calculate the path to the files
|
|
115
|
-
// @tramvai/cli when using threads loader does process.chdir(rootDir) because workers don't allow to change cwd
|
|
116
|
-
// this breaks stack traces, there are now broken paths to files, the inspector works incorrectly
|
|
117
|
-
serverRunner: 'process',
|
|
118
116
|
},
|
|
119
117
|
}, targetOrConfig),
|
|
120
118
|
}),
|
package/lib/app/startCli.js
CHANGED
|
@@ -96,6 +96,8 @@ const startCli = async (targetOrConfig, { enableRebuild = false, env, logger = c
|
|
|
96
96
|
stderr,
|
|
97
97
|
noClientRebuild: !enableRebuild,
|
|
98
98
|
noServerRebuild: !enableRebuild,
|
|
99
|
+
showBanner: false,
|
|
100
|
+
showProgress: false,
|
|
99
101
|
// build cache made tests unstable in CI, because of cache writing process are async,
|
|
100
102
|
// and there is no way to wait this process (`idleTimeoutForInitialStore: 0` helps sometimes, but no guarantees)
|
|
101
103
|
fileCache: !ciInfo.isCi,
|
|
@@ -107,6 +109,7 @@ const startCli = async (targetOrConfig, { enableRebuild = false, env, logger = c
|
|
|
107
109
|
config: mergeDeep__default["default"]({
|
|
108
110
|
// disable hot-refresh that may break checks for full page load because of never-ending request
|
|
109
111
|
hotRefresh: { enabled: false },
|
|
112
|
+
liveReload: false,
|
|
110
113
|
// faster builds
|
|
111
114
|
sourceMap: false,
|
|
112
115
|
// faster builds
|
|
@@ -119,11 +122,6 @@ const startCli = async (targetOrConfig, { enableRebuild = false, env, logger = c
|
|
|
119
122
|
'@tramvai-tinkoff/module-push-web',
|
|
120
123
|
],
|
|
121
124
|
},
|
|
122
|
-
// Playwright Inspector collects a stack trace for the ability to show in which file or step of the test a transition occurred
|
|
123
|
-
// internak stack trace utility uses process.cwd() to correctly calculate the path to the files
|
|
124
|
-
// @tramvai/cli when using threads loader does process.chdir(rootDir) because workers don't allow to change cwd
|
|
125
|
-
// this breaks stack traces, there are now broken paths to files, the inspector works incorrectly
|
|
126
|
-
serverRunner: 'process',
|
|
127
125
|
},
|
|
128
126
|
}, targetOrConfig),
|
|
129
127
|
}),
|
|
@@ -21,10 +21,10 @@ export declare const runFakeApp: (config: Partial<StartOptions['config']>, optio
|
|
|
21
21
|
parserOptions?: Partial<import("node-html-parser").Options> | undefined;
|
|
22
22
|
} | undefined) => Promise<{
|
|
23
23
|
initialState: any;
|
|
24
|
-
parsed:
|
|
25
|
-
body:
|
|
26
|
-
head:
|
|
27
|
-
application:
|
|
24
|
+
parsed: any;
|
|
25
|
+
body: any;
|
|
26
|
+
head: any;
|
|
27
|
+
application: any;
|
|
28
28
|
}>;
|
|
29
29
|
papi: {
|
|
30
30
|
publicPapi: (path: string, { method, body, contentType, headers, }?: {
|
|
@@ -20,10 +20,10 @@ export declare const runRealApp: (tramvaiConfigRoot: string, appName: string, op
|
|
|
20
20
|
parserOptions?: Partial<import("node-html-parser").Options> | undefined;
|
|
21
21
|
} | undefined) => Promise<{
|
|
22
22
|
initialState: any;
|
|
23
|
-
parsed:
|
|
24
|
-
body:
|
|
25
|
-
head:
|
|
26
|
-
application:
|
|
23
|
+
parsed: any;
|
|
24
|
+
body: any;
|
|
25
|
+
head: any;
|
|
26
|
+
application: any;
|
|
27
27
|
}>;
|
|
28
28
|
papi: {
|
|
29
29
|
publicPapi: (path: string, { method, body, contentType, headers, }?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/test-integration",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.26.8",
|
|
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": "7.0.1",
|
|
24
|
-
"@tramvai/test-helpers": "7.
|
|
24
|
+
"@tramvai/test-helpers": "7.26.8",
|
|
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": "7.
|
|
31
|
+
"@tramvai/cli": "7.26.8",
|
|
32
32
|
"tslib": "^2.4.0"
|
|
33
33
|
},
|
|
34
34
|
"license": "Apache-2.0",
|