Skip to content

Commit fa60cb0

Browse files
committed
patch @appium/base-driver assumptions
1 parent 665131a commit fa60cb0

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
diff --git a/build/lib/test-pages/static-dir.js b/build/lib/test-pages/static-dir.js
2+
index 598d6657274a371956f2c423da57bd702316982c..e703eb4f7f0bd92f26913a1ace9a1ae030d6e970 100644
3+
--- a/build/lib/test-pages/static-dir.js
4+
+++ b/build/lib/test-pages/static-dir.js
5+
@@ -13,12 +13,6 @@ const node_path_1 = __importDefault(require("node:path"));
6+
*/
7+
exports.TEST_FIXTURES_DIR = resolveTestFixturesDir();
8+
function resolveTestFixturesDir() {
9+
- const fromDir = __dirname;
10+
- const parts = node_path_1.default.resolve(fromDir).split(node_path_1.default.sep);
11+
- const baseDriverIndex = parts.indexOf('base-driver');
12+
- if (baseDriverIndex < 0) {
13+
- throw new Error(`Could not find the module root folder in the path: ${fromDir}`);
14+
- }
15+
- return node_path_1.default.join(parts.slice(0, baseDriverIndex + 1).join(node_path_1.default.sep), 'test-fixtures', 'static');
16+
+ return node_path_1.default.resolve(__dirname, '..', '..', '..', 'test-fixtures', 'static');
17+
}
18+
//# sourceMappingURL=static-dir.js.map

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ logFilters:
2222
- code: YN0069 # This rule seems redundant when applied on the original package
2323
level: error
2424
nodeLinker: pnpm
25-
npmMinimalAgeGate: 7d
25+
#npmMinimalAgeGate: 7d
2626
npmRegistryServer: "https://registry.npmjs.org"
2727
packageExtensions:
2828
appium@3:

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@
5555
"@appium/base-driver/axios": "^1.18.0",
5656
"@appium/base-driver/lru-cache": "^11.5.1",
5757
"@appium/base-driver/path-to-regexp": "^8.4.2",
58+
"@appium/base-driver@npm:10.7.1": "patch:@appium/base-driver@npm%3A10.7.1#~/.yarn/patches/@appium-base-driver-npm-10.7.1-e4f8d93069.patch",
59+
"@appium/base-driver@npm:^10.0.0-rc.1": "patch:@appium/base-driver@npm%3A10.7.1#~/.yarn/patches/@appium-base-driver-npm-10.7.1-e4f8d93069.patch",
60+
"@appium/base-driver@npm:^10.0.0-rc.2": "patch:@appium/base-driver@npm%3A10.7.1#~/.yarn/patches/@appium-base-driver-npm-10.7.1-e4f8d93069.patch",
61+
"@appium/base-driver@npm:^10.3.0": "patch:@appium/base-driver@npm%3A10.7.1#~/.yarn/patches/@appium-base-driver-npm-10.7.1-e4f8d93069.patch",
5862
"@appium/docutils": "ignore:",
5963
"@appium/logger/lru-cache": "^11.5.1",
6064
"@appium/support/archiver": "~8.0.0",

0 commit comments

Comments
 (0)