Skip to content

Commit c566c0e

Browse files
Copilotkobenguyent
andcommitted
Convert CJS to ESM: Appium helper (1789 lines)
Co-authored-by: kobenguyent <7845001+kobenguyent@users.noreply.github.com>
1 parent 2cafe45 commit c566c0e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/helper/Appium.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
let webdriverio
22

3-
const fs = require('fs')
4-
const axios = require('axios').default
5-
const { v4: uuidv4 } = require('uuid')
3+
import fs from 'fs'
4+
import axios from 'axios'
5+
import { v4 as uuidv4 } from 'uuid'
66

7-
const Webdriver = require('./WebDriver')
8-
const AssertionFailedError = require('../assert/error')
9-
const { truth } = require('../assert/truth')
10-
const recorder = require('../recorder')
11-
const Locator = require('../locator')
12-
const ConnectionRefused = require('./errors/ConnectionRefused')
7+
import Webdriver from './WebDriver.js'
8+
import AssertionFailedError from '../assert/error.js'
9+
import { truth } from '../assert/truth.js'
10+
import recorder from '../recorder.js'
11+
import Locator from '../locator.js'
12+
import ConnectionRefused from './errors/ConnectionRefused.js'
1313

1414
const mobileRoot = '//*'
1515
const webRoot = 'body'
@@ -1786,4 +1786,4 @@ function onlyForApps(expectedPlatform) {
17861786
}
17871787
}
17881788

1789-
module.exports = Appium
1789+
export default Appium

0 commit comments

Comments
 (0)