summaryrefslogtreecommitdiff
path: root/tests/specs/serve/basic/__test__.jsonc
diff options
context:
space:
mode:
authorYazan AbdAl-Rahman <yazan.abdalrahman@exalt.ps>2024-07-29 00:04:05 +0300
committerGitHub <noreply@github.com>2024-07-28 23:04:05 +0200
commit41f8988dc7f7e307af28af52e6d89469c824f214 (patch)
tree6f4623efb0111e6beae102ccb12b87e38d21b252 /tests/specs/serve/basic/__test__.jsonc
parent50fa4d7ef5d0615d60042eda72e34adb773e2ecf (diff)
fix(http): Adjust hostname display for Windows when using 0.0.0.0 (#24698)
Fixes #24687 --------- Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Diffstat (limited to 'tests/specs/serve/basic/__test__.jsonc')
-rw-r--r--tests/specs/serve/basic/__test__.jsonc16
1 files changed, 13 insertions, 3 deletions
diff --git a/tests/specs/serve/basic/__test__.jsonc b/tests/specs/serve/basic/__test__.jsonc
index 9a37d60ff..a8eaca0b6 100644
--- a/tests/specs/serve/basic/__test__.jsonc
+++ b/tests/specs/serve/basic/__test__.jsonc
@@ -1,5 +1,15 @@
{
- "args": "serve --port 12345 main.ts",
- "output": "main.out",
- "tempDir": true
+ "tempDir": true,
+ "tests": {
+ "basic_win": {
+ "if": "windows",
+ "args": "serve --host 0.0.0.0 --port 12345 main.ts",
+ "output": "main.out"
+ },
+ "basic_not_win": {
+ "if": "unix",
+ "args": "serve --host 0.0.0.0 --port 12345 main.ts",
+ "output": "main_not_win.out"
+ }
+ }
}