Skip to content

Commit 9bcc2fa

Browse files
committed
test: use random ng serve ports
1 parent e530502 commit 9bcc2fa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/legacy-cli/e2e/utils/project.ts

+5
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,11 @@ export function useCIDefaults(projectName = 'test-project') {
171171
// Use a random port in e2e.
172172
appTargets.e2e.options.port = 0;
173173
}
174+
175+
if (appTargets.serve) {
176+
// Use a random port in serve.
177+
appTargets.serve.options.port = 0;
178+
}
174179
});
175180
}
176181

0 commit comments

Comments
 (0)