{"id":23485613,"url":"https://github.com/yuler/test-runner-cli","last_synced_at":"2025-04-14T05:45:54.381Z","repository":{"id":65472756,"uuid":"397094800","full_name":"yuler/test-runner-cli","owner":"yuler","description":"A simple way to run tests","archived":false,"fork":false,"pushed_at":"2021-08-17T15:19:08.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T12:13:19.880Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-17T04:19:52.000Z","updated_at":"2021-08-17T15:19:10.000Z","dependencies_parsed_at":"2023-01-25T02:25:13.529Z","dependency_job_id":null,"html_url":"https://github.com/yuler/test-runner-cli","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuler%2Ftest-runner-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuler%2Ftest-runner-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuler%2Ftest-runner-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuler%2Ftest-runner-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuler","download_url":"https://codeload.github.com/yuler/test-runner-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830425,"owners_count":21168272,"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":[],"created_at":"2024-12-24T22:13:28.513Z","updated_at":"2025-04-14T05:45:54.333Z","avatar_url":"https://github.com/yuler.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# test-runner-cli [![CI](https://github.com/yuler/test-runner-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/yuler/test-runner-cli/actions/workflows/ci.yml)\n\n\u003e A simple way to run tests\n\n## Features\n\n-   Simple no API to learn, zero-config\n-   Natively supports ESM\n\n## Install\n\n```bash\nnpm install test-runner-cli\n```\n\n## Usage\n\n```bash\ntest-runner [dir|file] # default is dir `.`\n```\n\nCreate a test file endsWith `.test.js` or naming `test.js` and use Node's built-in [assert](https://nodejs.org/api/assert.html) module, then export the test function.\n\n```js\nimport {strict as assert} from 'assert' // Node \u003c=16\n// import { equal } from 'assert/strict'  // Node \u003e=16\n\nexport function testSomeThing() {\n\tassert.equal(1 + 2, 3)\n}\n```\n\nEdit package.json:\n\n```json\n{\n\t\"scripts\": {\n\t\t\"test\": \"test-runner\"\n\t}\n}\n```\n\nRun test files:\n\n```bash\nnpm test  // run all test files `.`\nnpx test-runner-cli fixtures test.js // run specify directory or file\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuler%2Ftest-runner-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuler%2Ftest-runner-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuler%2Ftest-runner-cli/lists"}