@lvce-editor/test-with-playwright 19.0.0 → 20.1.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 +5 -10
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -585,16 +585,11 @@ const findElectronExecutable = async ({
|
|
|
585
585
|
if (executable) {
|
|
586
586
|
return executable;
|
|
587
587
|
}
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
} else {
|
|
594
|
-
const executable = await findFile(directory, entry => entry === 'lvce');
|
|
595
|
-
if (executable) {
|
|
596
|
-
return executable;
|
|
597
|
-
}
|
|
588
|
+
}
|
|
589
|
+
const predicate = platform === 'win32' ? isWindowsExecutable : entry => entry === 'lvce';
|
|
590
|
+
const executable = await findFile(directory, predicate);
|
|
591
|
+
if (executable) {
|
|
592
|
+
return executable;
|
|
598
593
|
}
|
|
599
594
|
throw new Error(`[test-with-playwright] failed to locate Electron executable in ${directory}`);
|
|
600
595
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/test-with-playwright",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.1.0",
|
|
4
4
|
"description": "CLI tool for running Playwright tests",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"main": "dist/main.js",
|
|
13
13
|
"bin": "bin/test-with-playwright.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@lvce-editor/test-with-playwright-worker": "
|
|
16
|
-
"@lvce-editor/test-worker": "^16.
|
|
15
|
+
"@lvce-editor/test-with-playwright-worker": "20.1.0",
|
|
16
|
+
"@lvce-editor/test-worker": "^16.4.0"
|
|
17
17
|
},
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">=24"
|