diff --git a/Gulpfile.js b/Gulpfile.js index 1508aa406f7..b2dc4c8ea9e 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -3,7 +3,6 @@ const gulpStep = require('gulp-step'); const data = require('gulp-data'); const less = require('gulp-less'); const qunitHarness = require('gulp-qunit-harness'); -const git = require('gulp-git'); const mocha = require('gulp-mocha-simple'); const mustache = require('gulp-mustache'); const rename = require('gulp-rename'); @@ -17,16 +16,9 @@ const path = require('path'); const { Transform } = require('stream'); const { promisify } = require('util'); const globby = require('globby'); -const open = require('open'); -const connect = require('connect'); -const execa = require('execa'); -const serveStatic = require('serve-static'); -const markdownlint = require('markdownlint'); const minimist = require('minimist'); -const prompt = require('gulp-prompt'); const functionalTestConfig = require('./test/functional/config'); const { assignIn, castArray } = require('lodash'); -const yaml = require('js-yaml'); const childProcess = require('child_process'); const listBrowsers = require('testcafe-browser-tools').getInstallations; const npmAuditor = require('npm-auditor'); @@ -176,8 +168,6 @@ const MIGRATE_ALL_TESTS_TO_COMPILER_SERVICE_GLOB = [ 'test/functional/fixtures/driver/test.js' ]; -let websiteServer = null; - function promisifyStream (stream) { return new Promise((resolve, reject) => { stream.on('end', resolve).on('error', reject); diff --git a/test/server/test-run-commands-test.js b/test/server/test-run-commands-test.js index 0474a067ac4..a895692819c 100644 --- a/test/server/test-run-commands-test.js +++ b/test/server/test-run-commands-test.js @@ -4,11 +4,12 @@ const createCommandFromObject = require('../../lib/test-run/commands/from-object const SelectorBuilder = require('../../lib/client-functions/selectors/selector-builder'); const assertThrow = require('./helpers/assert-runtime-error').assertThrow; const TestController = require('../../lib/api/test-controller'); +const path = require('path'); const testRunMock = { test: { testFile: { - filename: '' + filename: path.join(__dirname, 'test.js') } } };