https://github.com/angular/angular
Raw File
Tip revision: ce2f1496cf8f4feb8b72ee97f70fb7e677f19354 authored by Andrew Scott on 31 May 2022, 23:34:17 UTC
release: cut the v13.3.11 release (#46203)
Tip revision: ce2f149
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