From 5c5a23e5c7f6f50f2261e878d97ce2379007b5d8 Mon Sep 17 00:00:00 2001 From: Farfurix Date: Wed, 21 Apr 2021 15:46:18 +0300 Subject: [PATCH 1/2] Fix server tests with Node.js v16 --- test/server/test-run-commands-test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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') } } }; From ccba75a1d3c4e46f6d92791adff248a487b94ea6 Mon Sep 17 00:00:00 2001 From: Farfurix Date: Wed, 21 Apr 2021 16:11:29 +0300 Subject: [PATCH 2/2] Fix Gulpfile.js --- Gulpfile.js | 10 ---------- 1 file changed, 10 deletions(-) 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);