https://github.com/angular/angular
Raw File
Tip revision: 154129b9defa9295f4684c595d1981c9b3c970c5 authored by Alex Rickabaugh on 01 April 2021, 21:35:30 UTC
release: cut the v11.2.8 release (#41419)
Tip revision: 154129b
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