https://github.com/angular/angular
Raw File
Tip revision: a66608a13c4e5954a7c2e93444cb2c7d5eed7c3e authored by Alex Rickabaugh on 08 June 2023, 20:29:53 UTC
release: cut the v16.1.0-rc.0 release
Tip revision: a66608a
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