Skip to content

Commit ff57b18

Browse files
committed
test: update NG_ALLOWED_HOSTS to include port in e2e tests
1 parent 90a1d05 commit ff57b18

8 files changed

Lines changed: 8 additions & 8 deletions

tests/e2e/tests/build/server-rendering/express-engine-csp-nonce.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default async function () {
6161
{
6262
...process.env,
6363
'PORT': String(port),
64-
'NG_ALLOWED_HOSTS': 'localhost',
64+
'NG_ALLOWED_HOSTS': `localhost:${port}`,
6565
},
6666
);
6767

tests/e2e/tests/build/server-rendering/express-engine-ngmodule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default async function () {
8383
{
8484
...process.env,
8585
'PORT': String(port),
86-
'NG_ALLOWED_HOSTS': 'localhost',
86+
'NG_ALLOWED_HOSTS': `localhost:${port}`,
8787
},
8888
);
8989

tests/e2e/tests/build/server-rendering/express-engine-standalone.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default async function () {
5050
{
5151
...process.env,
5252
'PORT': String(port),
53-
'NG_ALLOWED_HOSTS': 'localhost',
53+
'NG_ALLOWED_HOSTS': `localhost:${port}`,
5454
},
5555
);
5656

tests/e2e/tests/build/server-rendering/server-routes-output-mode-server-i18n-base-href.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ async function spawnServer(): Promise<number> {
111111
{
112112
...process.env,
113113
'PORT': String(port),
114-
'NG_ALLOWED_HOSTS': 'localhost',
114+
'NG_ALLOWED_HOSTS': `localhost:${port}`,
115115
},
116116
);
117117

tests/e2e/tests/build/server-rendering/server-routes-output-mode-server-i18n-sub-path.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ async function spawnServer(): Promise<number> {
146146
{
147147
...process.env,
148148
'PORT': String(port),
149-
'NG_ALLOWED_HOSTS': 'localhost',
149+
'NG_ALLOWED_HOSTS': `localhost:${port}`,
150150
},
151151
);
152152

tests/e2e/tests/build/server-rendering/server-routes-output-mode-server-i18n.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ async function spawnServer(): Promise<number> {
122122
{
123123
...process.env,
124124
'PORT': String(port),
125-
'NG_ALLOWED_HOSTS': 'localhost',
125+
'NG_ALLOWED_HOSTS': `localhost:${port}`,
126126
},
127127
);
128128

tests/e2e/tests/build/server-rendering/server-routes-output-mode-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ async function spawnServer(): Promise<number> {
206206
{
207207
...process.env,
208208
'PORT': String(port),
209-
'NG_ALLOWED_HOSTS': 'localhost',
209+
'NG_ALLOWED_HOSTS': `localhost:${port}`,
210210
},
211211
);
212212

tests/e2e/tests/build/server-rendering/server-routes-preload-links.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ async function spawnServer(): Promise<number> {
215215
{
216216
...process.env,
217217
'PORT': String(port),
218-
'NG_ALLOWED_HOSTS': 'localhost',
218+
'NG_ALLOWED_HOSTS': `localhost:${port}`,
219219
},
220220
);
221221

0 commit comments

Comments
 (0)