Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix server tests with Node.js v16 #6164

Merged
merged 2 commits into from
Apr 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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');
Expand Down Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion test/server/test-run-commands-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}
};
Expand Down