{"id":15092713,"url":"https://github.com/ksxgithub/deno_run_tests_on_localhost","last_synced_at":"2026-02-07T03:31:27.482Z","repository":{"id":62421477,"uuid":"255091704","full_name":"KSXGitHub/deno_run_tests_on_localhost","owner":"KSXGitHub","description":"Create a localhost server and run tests","archived":false,"fork":false,"pushed_at":"2020-04-18T02:29:48.000Z","size":30,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T12:38:10.873Z","etag":null,"topics":["cli","deno","javascript","localhost","testing","typescript"],"latest_commit_sha":null,"homepage":"https://deno.land/x/test_on_localhost","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KSXGitHub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-12T13:46:23.000Z","updated_at":"2024-06-27T14:27:16.000Z","dependencies_parsed_at":"2022-11-01T17:31:55.793Z","dependency_job_id":null,"html_url":"https://github.com/KSXGitHub/deno_run_tests_on_localhost","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KSXGitHub%2Fdeno_run_tests_on_localhost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KSXGitHub%2Fdeno_run_tests_on_localhost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KSXGitHub%2Fdeno_run_tests_on_localhost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KSXGitHub%2Fdeno_run_tests_on_localhost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KSXGitHub","download_url":"https://codeload.github.com/KSXGitHub/deno_run_tests_on_localhost/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244952554,"owners_count":20537467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","deno","javascript","localhost","testing","typescript"],"created_at":"2024-09-25T11:01:29.749Z","updated_at":"2026-02-07T03:31:27.476Z","avatar_url":"https://github.com/KSXGitHub.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test on LocalHost\n\nCreate a localhost server and run tests.\n\n## Usage\n\n### Programmatically\n\n```javascript\nimport run from \"https://deno.land/x/test_on_localhost@0.2.2/run.ts\";\n\nconst { success, code } = await run({\n  hostname: \"0.0.0.0\",\n  port: 8080,\n  list: [\"test/foo.ts\", \"test/bar.ts\"],\n});\n\nif (success) {\n  console.log(\"all tests passed.\");\n} else {\n  console.log(\"some tests failed.\");\n  console.log(\"status\", status);\n  Deno.exit(status);\n}\n```\n\n### Command-Line\n\nFile [cli.ts](./cli.ts) can be used as your test runner cli.\n\n```sh\ndeno -A https://deno.land/x/test_on_localhost@0.2.2/cli.ts \\\n  --host 0.0.0.0 \\\n  --port 8080 \\\n  test/foo.ts test/bar.ts\n```\n\n### Real-world Examples\n\n* https://github.com/KSXGitHub/yaml-wasm/blob/2ac301cf5ac9f72f88ef1f46a08c74c7f6dc3e37/run-tests.ts\n\n## License\n\n[MIT](https://git.io/Jvjim) © [Hoàng Văn Khải](https://github.com/KSXGitHub/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksxgithub%2Fdeno_run_tests_on_localhost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksxgithub%2Fdeno_run_tests_on_localhost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksxgithub%2Fdeno_run_tests_on_localhost/lists"}