Skip to content

Commit

Permalink
test: use random ng serve ports
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed Jul 28, 2022
1 parent e530502 commit 2844798
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/legacy-cli/e2e/utils/project.ts
Expand Up @@ -171,6 +171,12 @@ export function useCIDefaults(projectName = 'test-project') {
// Use a random port in e2e.
appTargets.e2e.options.port = 0;
}

if (appTargets.serve) {
// Use a random port in serve.
appTargets.serve.options ??= {};
appTargets.serve.options.port = 0;
}
});
}

Expand Down

0 comments on commit 2844798

Please sign in to comment.