chore(test-support): remove gulp
use mocha, babel
reorg test files
DELETE
packages/test-support/gulpfile.js
-'use strict';
-
-const gulp = require('gulp');
-const boilerplate = require('@appium/gulp-plugins').boilerplate.use(gulp);
-
-boilerplate({
- build: 'appium-test-support',
-});

MODIFY
packages/test-support/package.json
packages/test-support/package.json
"build"
],
"scripts": {
- "dev": "gulp dev --no-notif",
- "build": "gulp transpile",
- "test": "gulp unit-test:run",
- "test:e2e": "gulp e2e-test:run"
+ "build": "babel lib --root-mode=upward --out-dir=build/lib",
+ "dev": "npm run build -- --watch",
+ "fix": "npm run lint -- --fix",
+ "lint": "eslint -c ../../.eslintrc --ignore-path ../../.eslintignore .",
+ "test": "npm run test:unit",
+ "test:unit": "mocha --require ../../test/setup-babel.js \"./test/unit/**/*.spec.js\""
},
"dependencies": {
"@appium/support": "file:../support",

RENAME
packages/test-support/test/env-utils-specs.js
packages/test-support/test/unit/env-utils.spec.js
-// transpile:mocha
-
-import { stubEnv } from '../lib';
+import { stubEnv } from '../../lib';
const expect = chai.expect;

RENAME
packages/test-support/test/fixtures/ContactManager.apk
packages/test-support/test/unit/fixtures/ContactManager.apk
RENAME
packages/test-support/test/log-utils-specs.js
packages/test-support/test/unit/log-utils.spec.js
-// transpile:mocha
-
-import { stubLog } from '../lib';
-import log from '../lib/logger';
+import { stubLog } from '../../lib';
+import log from '../../lib/logger';
import sinon from 'sinon';
import '@colors/colors';

RENAME
packages/test-support/test/sandbox-utils-specs.js
packages/test-support/test/unit/sandbox-utils.spec.js
-// transpile:mocha
-
-import { withSandbox, verifySandbox } from '../lib';
+import { withSandbox, verifySandbox } from '../../lib';
const expect = chai.expect;

RENAME
packages/test-support/test/time-utils-specs.js
packages/test-support/test/unit/time-utils.spec.js
-// transpile:mocha
-
-import { fakeTime } from '../lib';
+import { fakeTime } from '../../lib';
import sinon from 'sinon';
import B from 'bluebird';

chore(test-support): remove gulp
- use mocha, babel
- reorg test files