{"id":22289829,"url":"https://github.com/stchris/testzero","last_synced_at":"2025-07-24T09:38:47.364Z","repository":{"id":137344425,"uuid":"178608536","full_name":"stchris/testzero","owner":"stchris","description":"JS test runner without dependencies","archived":false,"fork":false,"pushed_at":"2019-03-30T21:21:27.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T21:27:08.279Z","etag":null,"topics":["javascript","no-dependencies","runner","test","testing"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/stchris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-30T20:34:13.000Z","updated_at":"2019-05-14T08:17:50.000Z","dependencies_parsed_at":"2023-03-14T13:15:42.368Z","dependency_job_id":null,"html_url":"https://github.com/stchris/testzero","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stchris/testzero","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stchris%2Ftestzero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stchris%2Ftestzero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stchris%2Ftestzero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stchris%2Ftestzero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stchris","download_url":"https://codeload.github.com/stchris/testzero/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stchris%2Ftestzero/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265233753,"owners_count":23731825,"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":["javascript","no-dependencies","runner","test","testing"],"created_at":"2024-12-03T17:10:13.896Z","updated_at":"2025-07-14T02:36:30.720Z","avatar_url":"https://github.com/stchris.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# testzero\n\n![npm](https://img.shields.io/npm/v/testzero.svg)\n\ntest runner without dependencies\n\n### Minimalistic API:\n\n```javascript\nconst { assert, test, summary } = require('testzero');\n\ntest('works fine', () =\u003e {\n\tassert([].length == 0);\n});\n\nsummary();\n```\n\n### Minimalistic output:\n\n`.` for successful tests, `x` for failed tests:\n\n```bash\n$ npm test\n\n\u003e example@1.0.0 test /Users/chris/src/testzero/example\n\u003e node tests\n\n.xxxx\nSuccessfully ran 1 test(s)\nFailed 4 test(s):\n\tworks less fine\n\tfails\n\tfails as well\n\tfails more often than not\nnpm ERR! Test failed.  See above for more details.\n```\n## Installation\n\n\t$ npm i testzero\n\nor\n\n\t$ yarn add testzero\n\n## Usage\n\n* define `tests/index.js` to `require` your tests\n* optionally: call `summary()`\n* write tests in `.test.js` files\n* add `npm tests` as a script\n\nCheck the [example project](https://github.com/stchris/testzero/blob/master/example/).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstchris%2Ftestzero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstchris%2Ftestzero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstchris%2Ftestzero/lists"}