diff options
| author | Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> | 2024-09-12 16:32:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-12 23:32:28 +0000 |
| commit | 7477c2d70639962a40c7333e766b4a4b4aa75ddd (patch) | |
| tree | e03ec832e9d7a7ef1d40575210aba46b3a83632a /tests/specs/serve/basic | |
| parent | 018329a4d30681c953670cebe35a6e9dbf9bc5bb (diff) | |
feat(serve): Support second parameter in deno serve (#25606)
Closes #24099
Diffstat (limited to 'tests/specs/serve/basic')
| -rw-r--r-- | tests/specs/serve/basic/__test__.jsonc | 4 | ||||
| -rw-r--r-- | tests/specs/serve/basic/main.out | 1 | ||||
| -rw-r--r-- | tests/specs/serve/basic/main.ts | 2 | ||||
| -rw-r--r-- | tests/specs/serve/basic/main_not_win.out | 1 |
4 files changed, 5 insertions, 3 deletions
diff --git a/tests/specs/serve/basic/__test__.jsonc b/tests/specs/serve/basic/__test__.jsonc index a8eaca0b6..be63f793a 100644 --- a/tests/specs/serve/basic/__test__.jsonc +++ b/tests/specs/serve/basic/__test__.jsonc @@ -3,12 +3,12 @@ "tests": { "basic_win": { "if": "windows", - "args": "serve --host 0.0.0.0 --port 12345 main.ts", + "args": "serve --check --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", + "args": "serve --check --host 0.0.0.0 --port 12345 main.ts", "output": "main_not_win.out" } } diff --git a/tests/specs/serve/basic/main.out b/tests/specs/serve/basic/main.out index e79d76af5..8247920e2 100644 --- a/tests/specs/serve/basic/main.out +++ b/tests/specs/serve/basic/main.out @@ -1 +1,2 @@ +Check [WILDCARD] deno serve: Listening on http://localhost:12345/ diff --git a/tests/specs/serve/basic/main.ts b/tests/specs/serve/basic/main.ts index 9e299ab21..8aa061b1e 100644 --- a/tests/specs/serve/basic/main.ts +++ b/tests/specs/serve/basic/main.ts @@ -15,4 +15,4 @@ export default { fetch(req) { return new Response("Hello world!"); }, -}; +} satisfies Deno.ServeDefaultExport; diff --git a/tests/specs/serve/basic/main_not_win.out b/tests/specs/serve/basic/main_not_win.out index cbfd3395e..6b4a66750 100644 --- a/tests/specs/serve/basic/main_not_win.out +++ b/tests/specs/serve/basic/main_not_win.out @@ -1 +1,2 @@ +Check [WILDCARD] deno serve: Listening on http://0.0.0.0:12345/ |
