{"id":16756802,"url":"https://github.com/charmander/test","last_synced_at":"2025-11-01T19:30:23.392Z","repository":{"id":57101265,"uuid":"120561132","full_name":"charmander/test","owner":"charmander","description":"Node package for test grouping","archived":true,"fork":false,"pushed_at":"2024-10-12T03:26:02.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T19:47:08.313Z","etag":null,"topics":["nodejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/@charmander/test","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/charmander.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}},"created_at":"2018-02-07T04:05:12.000Z","updated_at":"2024-10-12T03:26:19.000Z","dependencies_parsed_at":"2022-08-20T17:31:02.685Z","dependency_job_id":null,"html_url":"https://github.com/charmander/test","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmander%2Ftest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmander%2Ftest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmander%2Ftest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmander%2Ftest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charmander","download_url":"https://codeload.github.com/charmander/test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239316607,"owners_count":19619008,"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":["nodejs"],"created_at":"2024-10-13T03:42:07.583Z","updated_at":"2025-11-01T19:30:23.338Z","avatar_url":"https://github.com/charmander.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Organizes and runs tests.\n\n\u003e [!WARNING]\n\u003e Deprecated in favor of the built-in [node:test][].\n\n[node:test]: https://nodejs.org/docs/latest/api/test.html\n\n\n## Usage\n\n```javascript\n'use strict';\n\nconst assert = require('assert');\nconst test = require('@charmander/test')(module);\n\ntest('synchronous test, no return value', () =\u003e {\n    assert(1 \u003c 2);\n});\n\ntest('asynchronous test, promise return value', async () =\u003e {\n    const n = await Promise.resolve(2);\n    assert(1 \u003c n);\n});\n```\n\nor\n\n```javascript\nconst describe = require('@charmander/test/describe')(module);\n\ndescribe('thing', it =\u003e {\n    it('behaves', () =\u003e {\n        assert(1 \u003c 2);\n    });\n});\n```\n\nRunning `node path/to/test-module.js` will run tests in that module. Test modules export an array of test objects, which have a `name` property and a `.run()` method. `.run()` returns a promise that rejects with a test error or resolves with `undefined`.\n\n\n  [ci]: https://travis-ci.org/charmander/test\n  [ci image]: https://api.travis-ci.org/charmander/test.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharmander%2Ftest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharmander%2Ftest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharmander%2Ftest/lists"}