@lvce-editor/test-with-playwright 6.4.0 → 6.7.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/dist/main.js +12 -10
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -360,6 +360,9 @@ const parseCliArgs = argv => {
|
|
|
360
360
|
if (parsed['test-path']) {
|
|
361
361
|
result.testPath = parsed['test-path'];
|
|
362
362
|
}
|
|
363
|
+
if (parsed['server-path']) {
|
|
364
|
+
result.serverPath = parsed['server-path'];
|
|
365
|
+
}
|
|
363
366
|
return result;
|
|
364
367
|
};
|
|
365
368
|
|
|
@@ -1326,7 +1329,8 @@ const runAllTests = async ({
|
|
|
1326
1329
|
headless,
|
|
1327
1330
|
timeout,
|
|
1328
1331
|
commandMap,
|
|
1329
|
-
testWorkerUri
|
|
1332
|
+
testWorkerUri,
|
|
1333
|
+
serverPath
|
|
1330
1334
|
}) => {
|
|
1331
1335
|
// TODO use `using` once supported
|
|
1332
1336
|
const path = fileURLToPath(testWorkerUri);
|
|
@@ -1336,7 +1340,7 @@ const runAllTests = async ({
|
|
|
1336
1340
|
commandMap,
|
|
1337
1341
|
stdio: 'inherit'
|
|
1338
1342
|
});
|
|
1339
|
-
await rpc.invoke(RunAllTests, onlyExtension, testPath, cwd, headless, timeout);
|
|
1343
|
+
await rpc.invoke(RunAllTests, onlyExtension, testPath, cwd, headless, timeout, serverPath);
|
|
1340
1344
|
await rpc.dispose();
|
|
1341
1345
|
};
|
|
1342
1346
|
|
|
@@ -1351,13 +1355,10 @@ const handleCliArgs = async ({
|
|
|
1351
1355
|
env
|
|
1352
1356
|
});
|
|
1353
1357
|
const {
|
|
1354
|
-
onlyExtension
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
} = options;
|
|
1359
|
-
const {
|
|
1360
|
-
headless
|
|
1358
|
+
onlyExtension,
|
|
1359
|
+
testPath,
|
|
1360
|
+
headless,
|
|
1361
|
+
serverPath
|
|
1361
1362
|
} = options;
|
|
1362
1363
|
const timeout = 30_000;
|
|
1363
1364
|
const testWorkerUri = getTestWorkerUrl();
|
|
@@ -1369,7 +1370,8 @@ const handleCliArgs = async ({
|
|
|
1369
1370
|
headless,
|
|
1370
1371
|
timeout,
|
|
1371
1372
|
commandMap,
|
|
1372
|
-
testWorkerUri
|
|
1373
|
+
testWorkerUri,
|
|
1374
|
+
serverPath
|
|
1373
1375
|
});
|
|
1374
1376
|
};
|
|
1375
1377
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/test-with-playwright",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"description": "CLI tool for running Playwright tests",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"main": "dist/main.js",
|
|
13
13
|
"bin": "bin/test-with-playwright.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@lvce-editor/test-with-playwright-worker": "6.
|
|
15
|
+
"@lvce-editor/test-with-playwright-worker": "6.7.0",
|
|
16
16
|
"@lvce-editor/test-worker": "^5.10.0"
|
|
17
17
|
},
|
|
18
18
|
"engines": {
|