test(fake-driver): use appium/test
MODIFY
packages/fake-driver/test/e2e/driver.e2e.spec.js
packages/fake-driver/test/e2e/driver.e2e.spec.js
-// transpile:mocha
-
import axios from 'axios';
-import {baseDriverE2ETests} from '@appium/base-driver/build/test/basedriver';
+import {driverE2ETestSuite} from 'appium/test';
import {FakeDriver, startServer} from '../../lib/index.js';
import {
BASE_CAPS,
@@ -20,7 +18,7 @@ import generalTests from './general-tests';
const shouldStartServer = process.env.USE_RUNNING_SERVER !== '0';
// test the same things as for base driver
-baseDriverE2ETests(FakeDriver, W3C_PREFIXED_CAPS);
+driverE2ETestSuite(FakeDriver, W3C_PREFIXED_CAPS);
describe('FakeDriver - via HTTP', function () {
let server = null;

MODIFY
packages/fake-driver/test/unit/driver.spec.js
packages/fake-driver/test/unit/driver.spec.js
-// transpile:mocha
-
import _ from 'lodash';
import {FakeDriver} from '../../lib';
import {W3C_CAPS, W3C_PREFIXED_CAPS} from '../helpers';
-import {baseDriverUnitTests} from '@appium/base-driver/build/test/basedriver';
+import {driverUnitTestSuite} from 'appium/test';
// test the same things as for base driver
-baseDriverUnitTests(FakeDriver, _.cloneDeep(W3C_PREFIXED_CAPS));
+driverUnitTestSuite(FakeDriver, _.cloneDeep(W3C_PREFIXED_CAPS));
describe('FakeDriver', function () {
it('should not start a session when a unique session is already running', async function () {

test(fake-driver): use appium/test