appium-xcuitest-driver 10.14.6 → 10.14.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.
Files changed (299) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/lib/commands/app-management.d.ts.map +1 -1
  3. package/build/lib/commands/app-management.js +3 -8
  4. package/build/lib/commands/app-management.js.map +1 -1
  5. package/build/lib/commands/biometric.d.ts.map +1 -1
  6. package/build/lib/commands/biometric.js +3 -4
  7. package/build/lib/commands/biometric.js.map +1 -1
  8. package/build/lib/commands/certificate.d.ts.map +1 -1
  9. package/build/lib/commands/certificate.js +3 -7
  10. package/build/lib/commands/certificate.js.map +1 -1
  11. package/build/lib/commands/condition.js +3 -8
  12. package/build/lib/commands/condition.js.map +1 -1
  13. package/build/lib/commands/content-size.d.ts.map +1 -1
  14. package/build/lib/commands/content-size.js +3 -3
  15. package/build/lib/commands/content-size.js.map +1 -1
  16. package/build/lib/commands/gesture.js +1 -1
  17. package/build/lib/commands/gesture.js.map +1 -1
  18. package/build/lib/commands/increase-contrast.d.ts.map +1 -1
  19. package/build/lib/commands/increase-contrast.js +4 -3
  20. package/build/lib/commands/increase-contrast.js.map +1 -1
  21. package/build/lib/commands/keychains.js +1 -1
  22. package/build/lib/commands/keychains.js.map +1 -1
  23. package/build/lib/commands/localization.js +1 -1
  24. package/build/lib/commands/localization.js.map +1 -1
  25. package/build/lib/commands/memory.d.ts.map +1 -1
  26. package/build/lib/commands/memory.js +2 -4
  27. package/build/lib/commands/memory.js.map +1 -1
  28. package/build/lib/commands/notifications.d.ts.map +1 -1
  29. package/build/lib/commands/notifications.js +3 -4
  30. package/build/lib/commands/notifications.js.map +1 -1
  31. package/build/lib/commands/pasteboard.d.ts.map +1 -1
  32. package/build/lib/commands/pasteboard.js +4 -4
  33. package/build/lib/commands/pasteboard.js.map +1 -1
  34. package/build/lib/commands/pcap.d.ts.map +1 -1
  35. package/build/lib/commands/pcap.js +1 -3
  36. package/build/lib/commands/pcap.js.map +1 -1
  37. package/build/lib/commands/permissions.d.ts.map +1 -1
  38. package/build/lib/commands/permissions.js +2 -5
  39. package/build/lib/commands/permissions.js.map +1 -1
  40. package/build/lib/commands/simctl.d.ts.map +1 -1
  41. package/build/lib/commands/simctl.js +4 -5
  42. package/build/lib/commands/simctl.js.map +1 -1
  43. package/build/lib/commands/web.js +1 -1
  44. package/build/lib/commands/web.js.map +1 -1
  45. package/build/lib/index.d.ts +5 -0
  46. package/build/lib/index.d.ts.map +1 -0
  47. package/build/{index.js → lib/index.js} +2 -2
  48. package/build/lib/index.js.map +1 -0
  49. package/build/lib/utils.d.ts +12 -2
  50. package/build/lib/utils.d.ts.map +1 -1
  51. package/build/lib/utils.js +20 -5
  52. package/build/lib/utils.js.map +1 -1
  53. package/build/test/functional/basic/alert-e2e-specs.d.ts +2 -0
  54. package/build/test/functional/basic/alert-e2e-specs.d.ts.map +1 -0
  55. package/build/test/functional/basic/alert-e2e-specs.js +129 -0
  56. package/build/test/functional/basic/alert-e2e-specs.js.map +1 -0
  57. package/build/test/functional/basic/basic-e2e-specs.d.ts +2 -0
  58. package/build/test/functional/basic/basic-e2e-specs.d.ts.map +1 -0
  59. package/build/test/functional/basic/basic-e2e-specs.js +268 -0
  60. package/build/test/functional/basic/basic-e2e-specs.js.map +1 -0
  61. package/build/test/functional/basic/element-e2e-specs.d.ts +2 -0
  62. package/build/test/functional/basic/element-e2e-specs.d.ts.map +1 -0
  63. package/build/test/functional/basic/element-e2e-specs.js +354 -0
  64. package/build/test/functional/basic/element-e2e-specs.js.map +1 -0
  65. package/build/test/functional/basic/find-e2e-specs.d.ts +2 -0
  66. package/build/test/functional/basic/find-e2e-specs.d.ts.map +1 -0
  67. package/build/test/functional/basic/find-e2e-specs.js +434 -0
  68. package/build/test/functional/basic/find-e2e-specs.js.map +1 -0
  69. package/build/test/functional/basic/gesture-e2e-specs.d.ts +2 -0
  70. package/build/test/functional/basic/gesture-e2e-specs.d.ts.map +1 -0
  71. package/build/test/functional/basic/gesture-e2e-specs.js +211 -0
  72. package/build/test/functional/basic/gesture-e2e-specs.js.map +1 -0
  73. package/build/test/functional/desired.d.ts +26 -0
  74. package/build/test/functional/desired.d.ts.map +1 -0
  75. package/build/test/functional/desired.js +124 -0
  76. package/build/test/functional/desired.js.map +1 -0
  77. package/build/test/functional/device/accessibility-e2e-specs.d.ts +2 -0
  78. package/build/test/functional/device/accessibility-e2e-specs.d.ts.map +1 -0
  79. package/build/test/functional/device/accessibility-e2e-specs.js +117 -0
  80. package/build/test/functional/device/accessibility-e2e-specs.js.map +1 -0
  81. package/build/test/functional/device/file-movement-e2e-specs.d.ts +2 -0
  82. package/build/test/functional/device/file-movement-e2e-specs.d.ts.map +1 -0
  83. package/build/test/functional/device/file-movement-e2e-specs.js +141 -0
  84. package/build/test/functional/device/file-movement-e2e-specs.js.map +1 -0
  85. package/build/test/functional/device/otherApps-e2e-specs.d.ts +2 -0
  86. package/build/test/functional/device/otherApps-e2e-specs.d.ts.map +1 -0
  87. package/build/test/functional/device/otherApps-e2e-specs.js +66 -0
  88. package/build/test/functional/device/otherApps-e2e-specs.js.map +1 -0
  89. package/build/test/functional/device/passwords-e2e-specs.d.ts +2 -0
  90. package/build/test/functional/device/passwords-e2e-specs.d.ts.map +1 -0
  91. package/build/test/functional/device/passwords-e2e-specs.js +91 -0
  92. package/build/test/functional/device/passwords-e2e-specs.js.map +1 -0
  93. package/build/test/functional/device/performance-e2e-specs.d.ts +2 -0
  94. package/build/test/functional/device/performance-e2e-specs.d.ts.map +1 -0
  95. package/build/test/functional/device/performance-e2e-specs.js +72 -0
  96. package/build/test/functional/device/performance-e2e-specs.js.map +1 -0
  97. package/build/test/functional/driver/driver-e2e-specs.d.ts +2 -0
  98. package/build/test/functional/driver/driver-e2e-specs.d.ts.map +1 -0
  99. package/build/test/functional/driver/driver-e2e-specs.js +296 -0
  100. package/build/test/functional/driver/driver-e2e-specs.js.map +1 -0
  101. package/build/test/functional/helpers/element.d.ts +4 -0
  102. package/build/test/functional/helpers/element.d.ts.map +1 -0
  103. package/build/test/functional/helpers/element.js +8 -0
  104. package/build/test/functional/helpers/element.js.map +1 -0
  105. package/build/test/functional/helpers/ports.d.ts +6 -0
  106. package/build/test/functional/helpers/ports.d.ts.map +1 -0
  107. package/build/test/functional/helpers/ports.js +29 -0
  108. package/build/test/functional/helpers/ports.js.map +1 -0
  109. package/build/test/functional/helpers/session.d.ts +7 -0
  110. package/build/test/functional/helpers/session.d.ts.map +1 -0
  111. package/build/test/functional/helpers/session.js +39 -0
  112. package/build/test/functional/helpers/session.js.map +1 -0
  113. package/build/test/functional/helpers/simulator.d.ts +12 -0
  114. package/build/test/functional/helpers/simulator.d.ts.map +1 -0
  115. package/build/test/functional/helpers/simulator.js +51 -0
  116. package/build/test/functional/helpers/simulator.js.map +1 -0
  117. package/build/test/functional/long/typing-stress-e2e-specs.d.ts +2 -0
  118. package/build/test/functional/long/typing-stress-e2e-specs.d.ts.map +1 -0
  119. package/build/test/functional/long/typing-stress-e2e-specs.js +84 -0
  120. package/build/test/functional/long/typing-stress-e2e-specs.js.map +1 -0
  121. package/build/test/functional/tv/tvos-e2e-specs.d.ts +2 -0
  122. package/build/test/functional/tv/tvos-e2e-specs.d.ts.map +1 -0
  123. package/build/test/functional/tv/tvos-e2e-specs.js +83 -0
  124. package/build/test/functional/tv/tvos-e2e-specs.js.map +1 -0
  125. package/build/test/functional/web/helpers.d.ts +28 -0
  126. package/build/test/functional/web/helpers.d.ts.map +1 -0
  127. package/build/test/functional/web/helpers.js +137 -0
  128. package/build/test/functional/web/helpers.js.map +1 -0
  129. package/build/test/functional/web/safari-alerts-e2e-specs.d.ts +2 -0
  130. package/build/test/functional/web/safari-alerts-e2e-specs.d.ts.map +1 -0
  131. package/build/test/functional/web/safari-alerts-e2e-specs.js +109 -0
  132. package/build/test/functional/web/safari-alerts-e2e-specs.js.map +1 -0
  133. package/build/test/functional/web/safari-basic-e2e-specs.d.ts +2 -0
  134. package/build/test/functional/web/safari-basic-e2e-specs.d.ts.map +1 -0
  135. package/build/test/functional/web/safari-basic-e2e-specs.js +425 -0
  136. package/build/test/functional/web/safari-basic-e2e-specs.js.map +1 -0
  137. package/build/test/functional/web/safari-execute-e2e-specs.d.ts +2 -0
  138. package/build/test/functional/web/safari-execute-e2e-specs.d.ts.map +1 -0
  139. package/build/test/functional/web/safari-execute-e2e-specs.js +167 -0
  140. package/build/test/functional/web/safari-execute-e2e-specs.js.map +1 -0
  141. package/build/test/functional/web/safari-nativewebtap-e2e-specs.d.ts +2 -0
  142. package/build/test/functional/web/safari-nativewebtap-e2e-specs.d.ts.map +1 -0
  143. package/build/test/functional/web/safari-nativewebtap-e2e-specs.js +323 -0
  144. package/build/test/functional/web/safari-nativewebtap-e2e-specs.js.map +1 -0
  145. package/build/test/functional/web/safari-ssl-e2e-specs.d.ts +2 -0
  146. package/build/test/functional/web/safari-ssl-e2e-specs.d.ts.map +1 -0
  147. package/build/test/functional/web/safari-ssl-e2e-specs.js +131 -0
  148. package/build/test/functional/web/safari-ssl-e2e-specs.js.map +1 -0
  149. package/build/test/functional/web/safari-window-e2e-specs.d.ts +2 -0
  150. package/build/test/functional/web/safari-window-e2e-specs.d.ts.map +1 -0
  151. package/build/test/functional/web/safari-window-e2e-specs.js +263 -0
  152. package/build/test/functional/web/safari-window-e2e-specs.js.map +1 -0
  153. package/build/test/setup.d.ts +19 -0
  154. package/build/test/setup.d.ts.map +1 -0
  155. package/build/test/setup.js +117 -0
  156. package/build/test/setup.js.map +1 -0
  157. package/build/test/unit/app-infos-cache-specs.d.ts +2 -0
  158. package/build/test/unit/app-infos-cache-specs.d.ts.map +1 -0
  159. package/build/test/unit/app-infos-cache-specs.js +101 -0
  160. package/build/test/unit/app-infos-cache-specs.js.map +1 -0
  161. package/build/test/unit/app-utils-specs.d.ts +2 -0
  162. package/build/test/unit/app-utils-specs.d.ts.map +1 -0
  163. package/build/test/unit/app-utils-specs.js +131 -0
  164. package/build/test/unit/app-utils-specs.js.map +1 -0
  165. package/build/test/unit/commands/activeAppInfo-specs.d.ts +2 -0
  166. package/build/test/unit/commands/activeAppInfo-specs.d.ts.map +1 -0
  167. package/build/test/unit/commands/activeAppInfo-specs.js +74 -0
  168. package/build/test/unit/commands/activeAppInfo-specs.js.map +1 -0
  169. package/build/test/unit/commands/alert-specs.d.ts +2 -0
  170. package/build/test/unit/commands/alert-specs.d.ts.map +1 -0
  171. package/build/test/unit/commands/alert-specs.js +111 -0
  172. package/build/test/unit/commands/alert-specs.js.map +1 -0
  173. package/build/test/unit/commands/context-specs.d.ts +2 -0
  174. package/build/test/unit/commands/context-specs.d.ts.map +1 -0
  175. package/build/test/unit/commands/context-specs.js +119 -0
  176. package/build/test/unit/commands/context-specs.js.map +1 -0
  177. package/build/test/unit/commands/deviceinfo-specs.d.ts +2 -0
  178. package/build/test/unit/commands/deviceinfo-specs.d.ts.map +1 -0
  179. package/build/test/unit/commands/deviceinfo-specs.js +67 -0
  180. package/build/test/unit/commands/deviceinfo-specs.js.map +1 -0
  181. package/build/test/unit/commands/element-specs.d.ts +2 -0
  182. package/build/test/unit/commands/element-specs.d.ts.map +1 -0
  183. package/build/test/unit/commands/element-specs.js +419 -0
  184. package/build/test/unit/commands/element-specs.js.map +1 -0
  185. package/build/test/unit/commands/file-movement-specs.d.ts +2 -0
  186. package/build/test/unit/commands/file-movement-specs.d.ts.map +1 -0
  187. package/build/test/unit/commands/file-movement-specs.js +81 -0
  188. package/build/test/unit/commands/file-movement-specs.js.map +1 -0
  189. package/build/test/unit/commands/find-specs.d.ts +2 -0
  190. package/build/test/unit/commands/find-specs.d.ts.map +1 -0
  191. package/build/test/unit/commands/find-specs.js +106 -0
  192. package/build/test/unit/commands/find-specs.js.map +1 -0
  193. package/build/test/unit/commands/general-specs.d.ts +2 -0
  194. package/build/test/unit/commands/general-specs.d.ts.map +1 -0
  195. package/build/test/unit/commands/general-specs.js +154 -0
  196. package/build/test/unit/commands/general-specs.js.map +1 -0
  197. package/build/test/unit/commands/gesture-specs.d.ts +2 -0
  198. package/build/test/unit/commands/gesture-specs.d.ts.map +1 -0
  199. package/build/test/unit/commands/gesture-specs.js +263 -0
  200. package/build/test/unit/commands/gesture-specs.js.map +1 -0
  201. package/build/test/unit/commands/location-specs.d.ts +2 -0
  202. package/build/test/unit/commands/location-specs.d.ts.map +1 -0
  203. package/build/test/unit/commands/location-specs.js +141 -0
  204. package/build/test/unit/commands/location-specs.js.map +1 -0
  205. package/build/test/unit/commands/pasteboard-specs.d.ts +2 -0
  206. package/build/test/unit/commands/pasteboard-specs.d.ts.map +1 -0
  207. package/build/test/unit/commands/pasteboard-specs.js +65 -0
  208. package/build/test/unit/commands/pasteboard-specs.js.map +1 -0
  209. package/build/test/unit/commands/proxy-helper-specs.d.ts +2 -0
  210. package/build/test/unit/commands/proxy-helper-specs.d.ts.map +1 -0
  211. package/build/test/unit/commands/proxy-helper-specs.js +88 -0
  212. package/build/test/unit/commands/proxy-helper-specs.js.map +1 -0
  213. package/build/test/unit/commands/screenshots-specs.d.ts +2 -0
  214. package/build/test/unit/commands/screenshots-specs.d.ts.map +1 -0
  215. package/build/test/unit/commands/screenshots-specs.js +71 -0
  216. package/build/test/unit/commands/screenshots-specs.js.map +1 -0
  217. package/build/test/unit/commands/session-specs.d.ts +2 -0
  218. package/build/test/unit/commands/session-specs.d.ts.map +1 -0
  219. package/build/test/unit/commands/session-specs.js +49 -0
  220. package/build/test/unit/commands/session-specs.js.map +1 -0
  221. package/build/test/unit/commands/simctl-specs.d.ts +2 -0
  222. package/build/test/unit/commands/simctl-specs.d.ts.map +1 -0
  223. package/build/test/unit/commands/simctl-specs.js +54 -0
  224. package/build/test/unit/commands/simctl-specs.js.map +1 -0
  225. package/build/test/unit/commands/source-specs.d.ts +2 -0
  226. package/build/test/unit/commands/source-specs.d.ts.map +1 -0
  227. package/build/test/unit/commands/source-specs.js +55 -0
  228. package/build/test/unit/commands/source-specs.js.map +1 -0
  229. package/build/test/unit/commands/ssl-certificate-specs.d.ts +2 -0
  230. package/build/test/unit/commands/ssl-certificate-specs.d.ts.map +1 -0
  231. package/build/test/unit/commands/ssl-certificate-specs.js +16 -0
  232. package/build/test/unit/commands/ssl-certificate-specs.js.map +1 -0
  233. package/build/test/unit/commands/xctest-specs.d.ts +2 -0
  234. package/build/test/unit/commands/xctest-specs.d.ts.map +1 -0
  235. package/build/test/unit/commands/xctest-specs.js +116 -0
  236. package/build/test/unit/commands/xctest-specs.js.map +1 -0
  237. package/build/test/unit/css-converter-specs.d.ts +2 -0
  238. package/build/test/unit/css-converter-specs.d.ts.map +1 -0
  239. package/build/test/unit/css-converter-specs.js +99 -0
  240. package/build/test/unit/css-converter-specs.js.map +1 -0
  241. package/build/test/unit/device-connections-factory-specs.d.ts +2 -0
  242. package/build/test/unit/device-connections-factory-specs.d.ts.map +1 -0
  243. package/build/test/unit/device-connections-factory-specs.js +88 -0
  244. package/build/test/unit/device-connections-factory-specs.js.map +1 -0
  245. package/build/test/unit/driver-specs.d.ts +2 -0
  246. package/build/test/unit/driver-specs.d.ts.map +1 -0
  247. package/build/test/unit/driver-specs.js +358 -0
  248. package/build/test/unit/driver-specs.js.map +1 -0
  249. package/build/test/unit/helpers.d.ts +2 -0
  250. package/build/test/unit/helpers.d.ts.map +1 -0
  251. package/build/test/unit/helpers.js +5 -0
  252. package/build/test/unit/helpers.js.map +1 -0
  253. package/build/test/unit/language-specs.d.ts +2 -0
  254. package/build/test/unit/language-specs.d.ts.map +1 -0
  255. package/build/test/unit/language-specs.js +159 -0
  256. package/build/test/unit/language-specs.js.map +1 -0
  257. package/build/test/unit/logs-helpers-specs.d.ts +2 -0
  258. package/build/test/unit/logs-helpers-specs.d.ts.map +1 -0
  259. package/build/test/unit/logs-helpers-specs.js +71 -0
  260. package/build/test/unit/logs-helpers-specs.js.map +1 -0
  261. package/build/test/unit/processargs-specs.d.ts +2 -0
  262. package/build/test/unit/processargs-specs.d.ts.map +1 -0
  263. package/build/test/unit/processargs-specs.js +87 -0
  264. package/build/test/unit/processargs-specs.js.map +1 -0
  265. package/build/test/unit/real-device-management-specs.d.ts +2 -0
  266. package/build/test/unit/real-device-management-specs.d.ts.map +1 -0
  267. package/build/test/unit/real-device-management-specs.js +151 -0
  268. package/build/test/unit/real-device-management-specs.js.map +1 -0
  269. package/build/test/unit/simulator-management-specs.d.ts +2 -0
  270. package/build/test/unit/simulator-management-specs.d.ts.map +1 -0
  271. package/build/test/unit/simulator-management-specs.js +143 -0
  272. package/build/test/unit/simulator-management-specs.js.map +1 -0
  273. package/build/test/unit/utils-specs.d.ts +2 -0
  274. package/build/test/unit/utils-specs.d.ts.map +1 -0
  275. package/build/test/unit/utils-specs.js +132 -0
  276. package/build/test/unit/utils-specs.js.map +1 -0
  277. package/build/tsconfig.tsbuildinfo +1 -0
  278. package/lib/commands/app-management.ts +3 -11
  279. package/lib/commands/biometric.ts +4 -7
  280. package/lib/commands/certificate.ts +3 -7
  281. package/lib/commands/condition.ts +4 -10
  282. package/lib/commands/content-size.ts +4 -6
  283. package/lib/commands/gesture.ts +2 -2
  284. package/lib/commands/increase-contrast.ts +5 -6
  285. package/lib/commands/keychains.ts +2 -2
  286. package/lib/commands/localization.ts +2 -2
  287. package/lib/commands/memory.ts +2 -7
  288. package/lib/commands/notifications.ts +3 -5
  289. package/lib/commands/pasteboard.ts +5 -6
  290. package/lib/commands/pcap.ts +2 -4
  291. package/lib/commands/permissions.ts +3 -8
  292. package/lib/commands/simctl.ts +4 -5
  293. package/lib/commands/web.ts +2 -2
  294. package/lib/index.ts +5 -0
  295. package/lib/utils.ts +20 -4
  296. package/npm-shrinkwrap.json +8 -8
  297. package/package.json +4 -7
  298. package/build/index.d.ts +0 -5
  299. package/index.js +0 -7
@@ -9,10 +9,10 @@ import {
9
9
  onPostConfigureApp,
10
10
  onDownloadApp,
11
11
  } from '../app-utils';
12
+ import {requireRealDevice} from '../utils';
12
13
  import type {XCUITestDriver} from '../driver';
13
14
  import type {AppState} from './enum';
14
15
  import type {Simulator} from 'appium-ios-simulator';
15
- import type {RealDevice} from '../device/real-device-management';
16
16
 
17
17
  /**
18
18
  * Installs the given application to the device under test.
@@ -185,11 +185,7 @@ export async function mobileKillApp(
185
185
  this: XCUITestDriver,
186
186
  bundleId: string,
187
187
  ): Promise<boolean> {
188
- if (!this.isRealDevice()) {
189
- throw new errors.UnsupportedOperationError('A real device is required');
190
- }
191
-
192
- return await (this.device as RealDevice).terminateApp(bundleId, String(this.opts.platformVersion));
188
+ return await requireRealDevice(this, 'Killing app').terminateApp(bundleId, String(this.opts.platformVersion));
193
189
  }
194
190
 
195
191
  /**
@@ -310,11 +306,7 @@ export async function mobileListApps(
310
306
  this: XCUITestDriver,
311
307
  applicationType: 'User' | 'System' = 'User',
312
308
  ): Promise<Record<string, any>[]> {
313
- if (!this.isRealDevice()) {
314
- throw new errors.NotImplementedError(`This extension is only supported on real devices`);
315
- }
316
-
317
- const service = await services.startInstallationProxyService(this.device.udid);
309
+ const service = await services.startInstallationProxyService(requireRealDevice(this, 'Listing apps').udid);
318
310
  try {
319
311
  return await service.listApplications({applicationType});
320
312
  } finally {
@@ -1,9 +1,6 @@
1
- import {assertSimulator as _assertSimulator} from '../utils';
1
+ import {requireSimulator} from '../utils';
2
2
  import type {XCUITestDriver} from '../driver';
3
3
  import type {BiometricFeature} from './types';
4
- import type {Simulator} from 'appium-ios-simulator';
5
-
6
- const assertSimulator = (driver: XCUITestDriver): Simulator => _assertSimulator.call(driver, 'Biometric enrollment');
7
4
 
8
5
  /**
9
6
  * Enrolls biometric authentication on a simulated device.
@@ -16,7 +13,7 @@ export async function mobileEnrollBiometric(
16
13
  this: XCUITestDriver,
17
14
  isEnabled: boolean = true,
18
15
  ): Promise<void> {
19
- await assertSimulator(this).enrollBiometric(isEnabled);
16
+ await requireSimulator(this, 'Biometric enrollment').enrollBiometric(isEnabled);
20
17
  }
21
18
 
22
19
  /**
@@ -34,7 +31,7 @@ export async function mobileSendBiometricMatch(
34
31
  type: BiometricFeature = 'touchId',
35
32
  match: boolean = true,
36
33
  ): Promise<void> {
37
- await assertSimulator(this).sendBiometricMatch(match, type);
34
+ await requireSimulator(this, 'Sending biometric match').sendBiometricMatch(match, type);
38
35
  }
39
36
 
40
37
  /**
@@ -47,6 +44,6 @@ export async function mobileSendBiometricMatch(
47
44
  export async function mobileIsBiometricEnrolled(
48
45
  this: XCUITestDriver,
49
46
  ): Promise<boolean> {
50
- return await assertSimulator(this).isBiometricEnrolled();
47
+ return await requireSimulator(this, 'Checking biometric enrollment').isBiometricEnrolled();
51
48
  }
52
49
 
@@ -8,7 +8,7 @@ import http from 'http';
8
8
  import {exec} from 'teen_process';
9
9
  import {findAPortNotInUse, checkPortStatus} from 'portscanner';
10
10
  import {Pyidevice} from '../device/clients/py-ios-device-client';
11
- import {errors} from 'appium/driver';
11
+ import {requireRealDevice} from '../utils';
12
12
  import type {Simulator} from 'appium-ios-simulator';
13
13
  import type {XCUITestDriver} from '../driver';
14
14
  import type {CertificateList} from './types';
@@ -252,9 +252,7 @@ export async function mobileInstallCertificate(
252
252
  * @group Real Device Only
253
253
  */
254
254
  export async function mobileRemoveCertificate(this: XCUITestDriver, name: string): Promise<string> {
255
- if (!this.isRealDevice()) {
256
- throw new errors.NotImplementedError('This extension is only supported on real devices');
257
- }
255
+ requireRealDevice(this, 'Removing certificate');
258
256
  if (!this.opts.udid) {
259
257
  throw new Error('udid capability is required');
260
258
  }
@@ -276,9 +274,7 @@ export async function mobileRemoveCertificate(this: XCUITestDriver, name: string
276
274
  * @throws {Error} If attempting to list certificates for a simulated device or if `py-ios-device` is not installed
277
275
  */
278
276
  export async function mobileListCertificates(this: XCUITestDriver): Promise<CertificateList> {
279
- if (!this.isRealDevice()) {
280
- throw new errors.NotImplementedError('This extension is only supported on real devices');
281
- }
277
+ requireRealDevice(this, 'Listing certificates');
282
278
  if (!this.opts.udid) {
283
279
  throw new Error('udid capability is required');
284
280
  }
@@ -1,6 +1,6 @@
1
1
  import {INSTRUMENT_CHANNEL, services} from 'appium-ios-device';
2
2
  import _ from 'lodash';
3
- import { isIos18OrNewer } from '../utils';
3
+ import { isIos18OrNewer, requireRealDevice } from '../utils';
4
4
  import type {XCUITestDriver} from '../driver';
5
5
  import type {DVTServiceWithConnection} from 'appium-ios-remotexpc';
6
6
  import type {Condition} from './types';
@@ -12,7 +12,7 @@ import type {Condition} from './types';
12
12
  * @see {@link https://help.apple.com/xcode/mac/current/#/dev308429d42}
13
13
  */
14
14
  export async function listConditionInducers(this: XCUITestDriver): Promise<Condition[]> {
15
- requireConditionInducerCompatibleDevice.call(this);
15
+ requireRealDevice(this, 'Condition inducer');
16
16
 
17
17
  if (isIos18OrNewer(this.opts)) {
18
18
  const dvtConnection = await startRemoteXPC(this.device.udid);
@@ -63,7 +63,7 @@ export async function enableConditionInducer(
63
63
  conditionID: string,
64
64
  profileID: string,
65
65
  ): Promise<boolean> {
66
- requireConditionInducerCompatibleDevice.call(this);
66
+ requireRealDevice(this, 'Condition inducer');
67
67
 
68
68
  if (isIos18OrNewer(this.opts)) {
69
69
  if (this._remoteXPCConditionInducerConnection) {
@@ -118,7 +118,7 @@ export async function enableConditionInducer(
118
118
  * @see {@link https://help.apple.com/xcode/mac/current/#/dev308429d42}
119
119
  */
120
120
  export async function disableConditionInducer(this: XCUITestDriver): Promise<boolean> {
121
- requireConditionInducerCompatibleDevice.call(this);
121
+ requireRealDevice(this, 'Condition inducer');
122
122
 
123
123
  if (isIos18OrNewer(this.opts)) {
124
124
  if (!this._remoteXPCConditionInducerConnection) {
@@ -161,12 +161,6 @@ export async function disableConditionInducer(this: XCUITestDriver): Promise<boo
161
161
  }
162
162
  }
163
163
 
164
- function requireConditionInducerCompatibleDevice(this: XCUITestDriver): void {
165
- if (this.isSimulator()) {
166
- throw this.log.errorWithException('Condition inducer only works on real devices');
167
- }
168
- }
169
-
170
164
  async function startRemoteXPC(udid: string): Promise<DVTServiceWithConnection> {
171
165
  const {Services} = await import('appium-ios-remotexpc');
172
166
  return Services.startDVTService(udid);
@@ -1,11 +1,8 @@
1
1
  import _ from 'lodash';
2
- import {assertSimulator as _assertSimulator} from '../utils';
2
+ import {requireSimulator} from '../utils';
3
3
  import { errors } from 'appium/driver';
4
4
  import type {XCUITestDriver} from '../driver';
5
5
  import type {ContentSizeAction, ContentSizeResult} from './types';
6
- import type {Simulator} from 'appium-ios-simulator';
7
-
8
- const assertSimulator = (driver: XCUITestDriver): Simulator => _assertSimulator.call(driver, 'Content size ui command');
9
6
 
10
7
  const CONTENT_SIZE = [
11
8
  'extra-small',
@@ -45,7 +42,7 @@ export async function mobileSetContentSize(
45
42
  );
46
43
  }
47
44
 
48
- await assertSimulator(this).setContentSize(size);
45
+ await requireSimulator(this, 'Setting content size').setContentSize(size);
49
46
  }
50
47
 
51
48
  /**
@@ -62,6 +59,7 @@ export async function mobileSetContentSize(
62
59
  export async function mobileGetContentSize(
63
60
  this: XCUITestDriver,
64
61
  ): Promise<ContentSizeResult> {
65
- return await assertSimulator(this).getContentSize() as ContentSizeResult;
62
+ return await requireSimulator(this, 'Getting content size')
63
+ .getContentSize() as ContentSizeResult;
66
64
  }
67
65
 
@@ -1,7 +1,7 @@
1
1
  import {errors} from 'appium/driver';
2
2
  import {util} from 'appium/support';
3
3
  import _ from 'lodash';
4
- import {assertSimulator} from '../utils';
4
+ import {requireSimulator} from '../utils';
5
5
  import type {XCUITestDriver} from '../driver';
6
6
  import type {ActionSequence, Element} from '@appium/types';
7
7
  import type {Direction} from './types';
@@ -15,7 +15,7 @@ const SUPPORTED_GESTURE_DIRECTIONS = ['up', 'down', 'left', 'right'] as const;
15
15
  * @throws {Error} If called on a real device
16
16
  */
17
17
  export async function mobileShake(this: XCUITestDriver): Promise<void> {
18
- await assertSimulator.call(this, 'Shake device').shake();
18
+ await requireSimulator(this, 'Shake device').shake();
19
19
  }
20
20
 
21
21
  /**
@@ -1,11 +1,8 @@
1
1
  import _ from 'lodash';
2
- import {assertSimulator as _assertSimulator} from '../utils';
2
+ import {requireSimulator} from '../utils';
3
3
  import { errors } from 'appium/driver';
4
4
  import type {XCUITestDriver} from '../driver';
5
5
  import type {IncreaseContrastAction, IncreaseContrastResult} from './types';
6
- import type {Simulator} from 'appium-ios-simulator';
7
-
8
- const assertSimulator = (driver: XCUITestDriver): Simulator => _assertSimulator.call(driver, 'Content size ui command');
9
6
 
10
7
  const INCREASE_CONTRAST_CONFIG = [
11
8
  'enabled',
@@ -30,7 +27,8 @@ export async function mobileSetIncreaseContrast(
30
27
  );
31
28
  }
32
29
 
33
- await assertSimulator(this).setIncreaseContrast(increaseContrast);
30
+ await requireSimulator(this, 'Setting increase contrast')
31
+ .setIncreaseContrast(increaseContrast);
34
32
  }
35
33
 
36
34
  /**
@@ -44,6 +42,7 @@ export async function mobileSetIncreaseContrast(
44
42
  export async function mobileGetIncreaseContrast(
45
43
  this: XCUITestDriver,
46
44
  ): Promise<IncreaseContrastResult> {
47
- return await assertSimulator(this).getIncreaseContrast() as IncreaseContrastResult;
45
+ return await requireSimulator(this, 'Getting increase contrast')
46
+ .getIncreaseContrast() as IncreaseContrastResult;
48
47
  }
49
48
 
@@ -1,4 +1,4 @@
1
- import {assertSimulator} from '../utils';
1
+ import {requireSimulator} from '../utils';
2
2
  import type {XCUITestDriver} from '../driver';
3
3
 
4
4
  /**
@@ -11,6 +11,6 @@ import type {XCUITestDriver} from '../driver';
11
11
  export async function mobileClearKeychains(
12
12
  this: XCUITestDriver,
13
13
  ): Promise<void> {
14
- await assertSimulator.call(this, 'Keychain modification').clearKeychains();
14
+ await requireSimulator(this, 'Keychain modification').clearKeychains();
15
15
  }
16
16
 
@@ -1,4 +1,4 @@
1
- import {assertSimulator} from '../utils';
1
+ import {requireSimulator} from '../utils';
2
2
  import type {XCUITestDriver} from '../driver';
3
3
  import type {KeyboardOptions, LanguageOptions, LocaleOptions} from './types';
4
4
 
@@ -33,7 +33,7 @@ export async function mobileConfigureLocalization(
33
33
  // Assign skipSyncUiDialogTranslation: true option in order to avoid shutting down the WDA session
34
34
  localizationOptions.language = Object.assign(language, {skipSyncUiDialogTranslation: true});
35
35
  }
36
- return await assertSimulator.call(this, 'Localization configuration')
36
+ return await requireSimulator(this, 'Localization configuration')
37
37
  .configureLocalization(localizationOptions);
38
38
  }
39
39
 
@@ -1,7 +1,7 @@
1
1
  import _ from 'lodash';
2
2
  import { errors } from 'appium/driver';
3
+ import {requireRealDevice} from '../utils';
3
4
  import type {XCUITestDriver} from '../driver';
4
- import type {RealDevice} from '../device/real-device-management';
5
5
 
6
6
  /**
7
7
  * Simulates Low Memory warning on the given application
@@ -14,12 +14,7 @@ export async function mobileSendMemoryWarning(
14
14
  this: XCUITestDriver,
15
15
  bundleId: string,
16
16
  ): Promise<void> {
17
- if (!this.isRealDevice()) {
18
- throw new Error('Memory warning simulation is only supported on real devices');
19
- }
20
-
21
- const device = this.device as RealDevice;
22
-
17
+ const device = requireRealDevice(this, 'Memory warning simulation');
23
18
  const appInfos = await device.devicectl.listApps(bundleId);
24
19
  if (_.isEmpty(appInfos)) {
25
20
  throw new errors.InvalidArgumentError(
@@ -1,8 +1,8 @@
1
1
  import {errors} from 'appium/driver';
2
2
  import _ from 'lodash';
3
+ import {requireSimulator} from '../utils';
3
4
  import type {XCUITestDriver} from '../driver';
4
5
  import type {PushPayload, NotificationType} from './types';
5
- import type {Simulator} from 'appium-ios-simulator';
6
6
 
7
7
  /**
8
8
  * Simulates push notification delivery to a simulated device.
@@ -20,9 +20,7 @@ export async function mobilePushNotification(
20
20
  bundleId: string,
21
21
  payload: PushPayload,
22
22
  ): Promise<void> {
23
- if (!this.isSimulator()) {
24
- throw new Error('This extension only works on Simulator');
25
- }
23
+ const simulator = requireSimulator(this, 'Push notification');
26
24
 
27
25
  if (!bundleId) {
28
26
  throw new errors.InvalidArgumentError(
@@ -41,7 +39,7 @@ export async function mobilePushNotification(
41
39
  `Got ${JSON.stringify(payload.aps)} instead`,
42
40
  );
43
41
  }
44
- await (this.device as Simulator).pushNotification({
42
+ await simulator.pushNotification({
45
43
  ...payload,
46
44
  'Simulator Target Bundle': bundleId,
47
45
  });
@@ -1,7 +1,6 @@
1
1
  import _ from 'lodash';
2
- import { assertSimulator } from '../utils';
2
+ import { requireSimulator } from '../utils';
3
3
  import type {XCUITestDriver} from '../driver';
4
- import type {Simulator} from 'appium-ios-simulator';
5
4
 
6
5
  /**
7
6
  * Sets the Simulator's pasteboard content to the given value.
@@ -17,12 +16,12 @@ export async function mobileSetPasteboard(
17
16
  content: string,
18
17
  encoding: BufferEncoding = 'utf8',
19
18
  ): Promise<void> {
20
- assertSimulator.call(this, 'Setting pasteboard content');
19
+ const simulator = requireSimulator(this, 'Setting pasteboard content');
21
20
  if (!_.isString(content)) {
22
21
  // can be empty string
23
22
  throw new Error('Pasteboard content is mandatory to set');
24
23
  }
25
- await (this.device as Simulator).simctl.setPasteboard(content, encoding);
24
+ await simulator.simctl.setPasteboard(content, encoding);
26
25
  }
27
26
 
28
27
  /**
@@ -38,7 +37,7 @@ export async function mobileGetPasteboard(
38
37
  this: XCUITestDriver,
39
38
  encoding: BufferEncoding = 'utf8',
40
39
  ): Promise<string> {
41
- assertSimulator.call(this, 'Getting pasteboard content');
42
- return await (this.device as Simulator).simctl.getPasteboard(encoding);
40
+ return await requireSimulator(this, 'Getting pasteboard content')
41
+ .simctl.getPasteboard(encoding);
43
42
  }
44
43
 
@@ -1,6 +1,6 @@
1
1
  import { Pyidevice } from '../device/clients/py-ios-device-client';
2
2
  import {fs, tempDir, util} from 'appium/support';
3
- import {encodeBase64OrUpload} from '../utils';
3
+ import {encodeBase64OrUpload, requireRealDevice} from '../utils';
4
4
  import {errors} from 'appium/driver';
5
5
  import type {XCUITestDriver} from '../driver';
6
6
  import type {SubProcess} from 'teen_process';
@@ -85,9 +85,7 @@ export async function mobileStartPcap(
85
85
  timeLimitSec = 180,
86
86
  forceRestart = false,
87
87
  ): Promise<void> {
88
- if (this.isSimulator()) {
89
- throw this.log.errorWithException('Network traffic capture only works on real devices');
90
- }
88
+ requireRealDevice(this, 'Network traffic capture');
91
89
 
92
90
  if (this._trafficCapture?.isCapturing()) {
93
91
  this.log.info(`There is an active traffic capture process`);
@@ -1,9 +1,8 @@
1
1
  import _ from 'lodash';
2
2
  import {PermissionService} from './enum';
3
- import {assertSimulator as _assertSimulator} from '../utils';
3
+ import {requireSimulator} from '../utils';
4
4
  import type {XCUITestDriver} from '../driver';
5
5
  import type {PermissionState} from './types';
6
- import type {Simulator} from 'appium-ios-simulator';
7
6
 
8
7
  /**
9
8
  * Resets the given permission for the active application under test.
@@ -58,9 +57,8 @@ export async function mobileGetPermission(
58
57
  if (!service) {
59
58
  throw new Error(`The 'service' option is expected to be present`);
60
59
  }
61
- assertSimulator(this);
62
60
 
63
- return await (this.device as Simulator).getPermission(
61
+ return await requireSimulator(this, 'Getting permission').getPermission(
64
62
  bundleId, String(service)
65
63
  ) as PermissionState;
66
64
  }
@@ -82,9 +80,6 @@ export async function mobileSetPermissions(
82
80
  if (!_.isPlainObject(access)) {
83
81
  throw new Error(`The 'access' option is expected to be a map`);
84
82
  }
85
- assertSimulator(this);
86
83
 
87
- await (this.device as Simulator).setPermissions(bundleId, access);
84
+ await requireSimulator(this, 'Setting permissions').setPermissions(bundleId, access);
88
85
  }
89
-
90
- const assertSimulator = (driver: XCUITestDriver) => _assertSimulator.call(driver, 'Permission-related operations');
@@ -1,4 +1,5 @@
1
1
  import { errors } from 'appium/driver';
2
+ import {requireSimulator} from '../utils';
2
3
  import type {XCUITestDriver} from '../driver';
3
4
  import type {Simulator} from 'appium-ios-simulator';
4
5
 
@@ -56,12 +57,10 @@ export async function mobileSimctl(
56
57
  args: string[] = [],
57
58
  timeout?: number,
58
59
  ): Promise<SimctlExecResponse> {
59
- if (!this.isSimulator()) {
60
- throw new errors.UnsupportedOperationError(`Only simulator is supported.`);
61
- }
60
+ const simulator: Simulator = requireSimulator(this, 'simctl command');
62
61
 
63
62
  if (!this.opts.udid) {
64
- throw new errors.InvalidArgumentError(`Unknown device or simulator UDID: '${this.opts.udid}'`);
63
+ throw new errors.InvalidArgumentError(`Unknown simulator UDID: '${this.opts.udid}'`);
65
64
  }
66
65
 
67
66
  if (!(SUBCOMMANDS_HAS_DEVICE as readonly string[]).includes(command)) {
@@ -69,7 +68,7 @@ export async function mobileSimctl(
69
68
  `Available subcommands are ${SUBCOMMANDS_HAS_DEVICE.join(',')}`);
70
69
  }
71
70
 
72
- const result = await (this.device as Simulator).simctl.exec(
71
+ const result = await simulator.simctl.exec(
73
72
  command as typeof SUBCOMMANDS_HAS_DEVICE[number],
74
73
  {args: [this.opts.udid, ...args], timeout}
75
74
  );
@@ -3,7 +3,7 @@ import {timing, util} from 'appium/support';
3
3
  import {retryInterval} from 'asyncbox';
4
4
  import B, {TimeoutError, AggregateError} from 'bluebird';
5
5
  import _ from 'lodash';
6
- import {assertSimulator} from '../utils';
6
+ import {requireSimulator} from '../utils';
7
7
  import type {XCUITestDriver} from '../driver';
8
8
  import type {Element, Cookie, Size, Position, Rect} from '@appium/types';
9
9
  import type {AtomsElement} from './types';
@@ -1014,7 +1014,7 @@ export async function mobileCalibrateWebToRealCoordinatesTranslation(this: XCUIT
1014
1014
  * @throws {errors.InvalidArgumentError} If the preferences argument is invalid
1015
1015
  */
1016
1016
  export async function mobileUpdateSafariPreferences(this: XCUITestDriver, preferences: Record<string, any>): Promise<void> {
1017
- const simulator = assertSimulator.call(this, 'Updating Safari preferences');
1017
+ const simulator = requireSimulator(this, 'Updating Safari preferences');
1018
1018
  if (!_.isPlainObject(preferences)) {
1019
1019
  throw new errors.InvalidArgumentError('"preferences" argument must be a valid object');
1020
1020
  }
package/lib/index.ts ADDED
@@ -0,0 +1,5 @@
1
+ import {XCUITestDriver} from './driver';
2
+
3
+ export {XCUITestDriver};
4
+ export * as doctor from './doctor/checks';
5
+ export default XCUITestDriver;
package/lib/utils.ts CHANGED
@@ -13,6 +13,7 @@ import {PLATFORM_NAME_TVOS, PLATFORM_NAME_IOS} from './desired-caps';
13
13
  import type {XCUITestDriverOpts, XCUITestDriver} from './driver';
14
14
  import type {XcodeVersion} from 'appium-xcode';
15
15
  import type {Simulator} from 'appium-ios-simulator';
16
+ import type {RealDevice} from './device/real-device-management';
16
17
  import type {HTTPHeaders} from '@appium/types';
17
18
  import type {Method} from 'axios';
18
19
 
@@ -423,16 +424,31 @@ export function requireArgs(argNames: string | string[], opts: Record<string, an
423
424
  }
424
425
 
425
426
  /**
426
- * Asserts that the given driver is running on a Simulator and return
427
+ * Requires that the given driver is running on a Simulator and return
427
428
  * the simlator instance.
428
429
  *
430
+ * @param driver - The driver instance
429
431
  * @param action - Description of action
430
432
  */
431
- export function assertSimulator(this: XCUITestDriver, action: string): Simulator {
432
- if (!this.isSimulator()) {
433
+ export function requireSimulator(driver: XCUITestDriver, action: string): Simulator {
434
+ if (!driver.isSimulator()) {
433
435
  throw new Error(`${_.upperFirst(action)} can only be performed on Simulator`);
434
436
  }
435
- return this.device as Simulator;
437
+ return driver.device as Simulator;
438
+ }
439
+
440
+ /**
441
+ * Requires that the given driver is running on a real device and return
442
+ * the real device instance.
443
+ *
444
+ * @param driver - The driver instance
445
+ * @param action - Description of action
446
+ */
447
+ export function requireRealDevice(driver: XCUITestDriver, action: string): RealDevice {
448
+ if (!driver.isRealDevice()) {
449
+ throw new Error(`${_.upperFirst(action)} can only be performed on a real device`);
450
+ }
451
+ return driver.device as RealDevice;
436
452
  }
437
453
 
438
454
  /**
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "appium-xcuitest-driver",
3
- "version": "10.14.6",
3
+ "version": "10.14.8",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "appium-xcuitest-driver",
9
- "version": "10.14.6",
9
+ "version": "10.14.8",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@appium/strongbox": "^1.0.0-rc.1",
@@ -692,9 +692,9 @@
692
692
  }
693
693
  },
694
694
  "node_modules/appium-ios-remotexpc": {
695
- "version": "0.24.3",
696
- "resolved": "https://registry.npmjs.org/appium-ios-remotexpc/-/appium-ios-remotexpc-0.24.3.tgz",
697
- "integrity": "sha512-x76WZpWMLZ2p6coPwmfdqs9dSniAbb8wAAYe0QFD+b9jJtC1QmZjyXB2uEXD1dR871dEwJXUZbB5qKMWYQWNeg==",
695
+ "version": "0.25.0",
696
+ "resolved": "https://registry.npmjs.org/appium-ios-remotexpc/-/appium-ios-remotexpc-0.25.0.tgz",
697
+ "integrity": "sha512-inc/mZc3Dz7mtBj/CWC+m3NlWB2a14aZ4Ug6onM/7vI80N3YRsOyaSfYk1HCLwacstvDJhjEoA6bqi5LMtVwYA==",
698
698
  "license": "Apache-2.0",
699
699
  "optional": true,
700
700
  "dependencies": {
@@ -2439,9 +2439,9 @@
2439
2439
  "license": "MIT"
2440
2440
  },
2441
2441
  "node_modules/iconv-lite": {
2442
- "version": "0.7.1",
2443
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.1.tgz",
2444
- "integrity": "sha512-2Tth85cXwGFHfvRgZWszZSvdo+0Xsqmw8k8ZwxScfcBneNUraK+dxRxRm24nszx80Y0TVio8kKLt5sLE7ZCLlw==",
2442
+ "version": "0.7.2",
2443
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz",
2444
+ "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==",
2445
2445
  "license": "MIT",
2446
2446
  "dependencies": {
2447
2447
  "safer-buffer": ">= 2.1.2 < 3.0.0"
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "xcuitest",
9
9
  "xctest"
10
10
  ],
11
- "version": "10.14.6",
11
+ "version": "10.14.8",
12
12
  "author": "Appium Contributors",
13
13
  "license": "Apache-2.0",
14
14
  "repository": {
@@ -61,24 +61,21 @@
61
61
  ]
62
62
  }
63
63
  },
64
- "main": "./build/index.js",
64
+ "main": "./build/lib/index.js",
65
65
  "bin": {},
66
66
  "directories": {
67
67
  "lib": "lib"
68
68
  },
69
69
  "files": [
70
- "index.js",
71
70
  "lib",
72
71
  "scripts",
73
- "build/index.js",
74
- "build/index.d.ts",
75
- "build/lib",
72
+ "build",
76
73
  "!.DS_Store",
77
74
  "CHANGELOG.md",
78
75
  "LICENSE",
79
76
  "npm-shrinkwrap.json"
80
77
  ],
81
- "types": "./build/index.d.ts",
78
+ "types": "./build/lib/index.d.ts",
82
79
  "dependencies": {
83
80
  "@appium/strongbox": "^1.0.0-rc.1",
84
81
  "@colors/colors": "^1.6.0",
package/build/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export { XCUITestDriver };
2
- export * as doctor from "./lib/doctor/checks";
3
- export default XCUITestDriver;
4
- import { XCUITestDriver } from './lib/driver';
5
- //# sourceMappingURL=index.d.ts.map
package/index.js DELETED
@@ -1,7 +0,0 @@
1
- import {XCUITestDriver} from './lib/driver';
2
-
3
- export {XCUITestDriver};
4
-
5
- export * as doctor from './lib/doctor/checks';
6
-
7
- export default XCUITestDriver;