https://github.com/angular/angular
Raw File
Tip revision: f24972b1b1d9f03393c311a28ee19dbe9a50f5e7 authored by Alex Rickabaugh on 08 July 2020, 20:44:29 UTC
release: cut the v10.0.3 release
Tip revision: f24972b
start-server.js
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */

const protractorUtils = require('@bazel/protractor/protractor-utils');
const protractor = require('protractor');

module.exports = async function(config) {
  const {port} = await protractorUtils.runServer(config.workspace, config.server, '-port', []);
  const serverUrl = `http://localhost:${port}`;

  protractor.browser.baseUrl = serverUrl;
};
back to top