test(fake-driver): use
also publish types, since that wasn't happening
MODIFY
packages/fake-driver/lib/index.js
packages/fake-driver/lib/index.js
-// transpile:main
-
import * as driver from './driver';
import * as server from './server';

MODIFY
packages/fake-driver/package.json
packages/fake-driver/package.json
"fake-success": "./build/lib/scripts/fake-success.js"
}
},
+ "types": "./build/lib/index.d.ts",
"gitHead": "5c7af8ee73078018e4ec52fccf19fe3f77249d72"
}

MODIFY
packages/fake-driver/test/e2e/driver.e2e.spec.js
packages/fake-driver/test/e2e/driver.e2e.spec.js
import axios from 'axios';
-import {driverE2ETestSuite} from 'appium/test';
+import {driverE2ETestSuite} from '@appium/driver-test-support';
import {FakeDriver, startServer} from '../../lib/index.js';
import {
BASE_CAPS,

MODIFY
packages/fake-driver/test/unit/driver.spec.js
packages/fake-driver/test/unit/driver.spec.js
import _ from 'lodash';
import {FakeDriver} from '../../lib';
import {W3C_CAPS, W3C_PREFIXED_CAPS} from '../helpers';
-import {driverUnitTestSuite} from 'appium/test';
+import {driverUnitTestSuite} from '@appium/driver-test-support';
// test the same things as for base driver
driverUnitTestSuite(FakeDriver, _.cloneDeep(W3C_PREFIXED_CAPS));

ADD
packages/fake-driver/tsconfig.json
+{
+ "extends": "../../config/tsconfig.base.json",
+ "compilerOptions": {
+ "outDir": "build",
+ "paths": {
+ "@appium/types": ["../types"],
+ "appium/support": ["../appium/support"],
+ "appium/driver": ["../appium/driver"],
+ "@appium/driver-test-support": ["../driver-test-support"]
+ }
+ },
+ "include": ["./lib"],
+ "references": [
+ {"path": "../types"},
+ {"path": "../support"},
+ {"path": "../driver-test-support"}
+ ]
+}

MODIFY
tsconfig.json
tsconfig.json
},
{
"path": "packages/docutils"
+ },
+ {
+ "path": "packages/fake-driver"
}
]
}

test(fake-driver): use @appium/driver-test-support

also publish types, since that wasn't happening