https://github.com/angular/angular
Raw File
Tip revision: e3a8a5cc4237d8c87ebde167c9ac9f2b0102f420 authored by Andrew Kushnir on 18 January 2023, 18:03:07 UTC
release: cut the v15.1.1 release
Tip revision: e3a8a5c
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