Skip to content

Commit 2844798

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

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ 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 ??= {};
178+
appTargets.serve.options.port = 0;
179+
}
174180
});
175181
}
176182

0 commit comments

Comments
 (0)