mirror of
https://github.com/appium/appium.git
synced 2026-05-12 22:08:40 -05:00
133db5355f
this reformats all `.js`, `.ts`, and `.d.ts` files.
31 lines
584 B
JavaScript
31 lines
584 B
JavaScript
'use strict';
|
|
|
|
const e2eTest = require('./e2e-test');
|
|
const unitTest = require('./unit-test');
|
|
|
|
const configure = function configure(gulp, opts, env) {
|
|
const testEnv = {
|
|
testDeps: opts.transpile ? ['transpile'] : [],
|
|
...env,
|
|
};
|
|
|
|
let testTasks = [];
|
|
if (opts.test) {
|
|
unitTest.configure(gulp, opts, testEnv);
|
|
testTasks.push('unit-test');
|
|
}
|
|
|
|
if (opts.e2eTest) {
|
|
e2eTest.configure(gulp, opts, testEnv);
|
|
testTasks.push('e2e-test');
|
|
}
|
|
|
|
if (testTasks.length) {
|
|
gulp.task('test', gulp.series(testTasks));
|
|
}
|
|
};
|
|
|
|
module.exports = {
|
|
configure,
|
|
};
|