{"id":19664879,"url":"https://github.com/small-tech/tape-with-promises","last_synced_at":"2025-08-03T13:17:06.957Z","repository":{"id":57683776,"uuid":"472293082","full_name":"small-tech/tape-with-promises","owner":"small-tech","description":"Adds promise support (rejects(), doesNotReject()) to tape by decorating it using tape-promise.","archived":false,"fork":false,"pushed_at":"2024-10-24T10:37:31.000Z","size":29,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-02T17:05:39.577Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/small-tech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2022-03-21T10:45:08.000Z","updated_at":"2024-10-24T10:37:34.000Z","dependencies_parsed_at":"2024-10-27T04:13:30.490Z","dependency_job_id":null,"html_url":"https://github.com/small-tech/tape-with-promises","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"ad09cd3c3452e25a16d02393b119eee16a82b425"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/small-tech/tape-with-promises","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/small-tech%2Ftape-with-promises","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/small-tech%2Ftape-with-promises/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/small-tech%2Ftape-with-promises/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/small-tech%2Ftape-with-promises/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/small-tech","download_url":"https://codeload.github.com/small-tech/tape-with-promises/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/small-tech%2Ftape-with-promises/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268551874,"owners_count":24268654,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-11T16:19:28.164Z","updated_at":"2025-08-03T13:17:06.906Z","avatar_url":"https://github.com/small-tech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tape With Promises\n\n## 🚨 This package is depracated. 🚨\n\n[Tape version 5.x+](https://github.com/tape-testing/tape) supports promises (and thus async/await) and so this module is no longer necessary.\n\n### If you’re still on Tape version 4\n\nPlease consider upgrading to Tape 5.x.\n\nIf you can’t right now, you can still install and use version 1.0.1 of this module:\n\n```\nnpm install @small-tech/tape-with-promises@1.0.1\n```\n\n### To switch from this module to Tape version 5.x+:\n\n1. Install tape:\n\n    ```\n    npm install tape\n    ```\n\n2. Remove this module:\n\n    ```\n    npm remove @small-tech/tape-with-promises\n    ```\n\n3. In your test files, import the tape instead of this module:\n\n    ```\n    // Replace:\n\n    import test from '@small-tech/tape-with-promises'\n\n    // With:\n\n    import test from 'tape'\n    ```\n\n## About\n\nAdds promise support ([`rejects()`](https://github.com/jprichardson/tape-promise#trejectspromise-expected-msg), [`doesNotReject()`](https://github.com/jprichardson/tape-promise#tdoesnotrejectpromise-expected-msg)) to [tape](https://github.com/substack/tape) by decorating it using [tape-promise](https://github.com/jprichardson/tape-promise).\n\n## Install\n\n```\nnpm install --save-dev @small-tech/tape-with-promises\n```\n\n## Use\n\n```js\nimport test from '@small-tech/tape-with-promises'\n\ntest('promises', async t =\u003e {\n  await t.rejects(() =\u003e {\n    return new Promise((resolve, reject) =\u003e {\n      setTimeout(() =\u003e {\n        // This does, indeed, reject.\n        reject('Oh, no!')\n      }, 100)\n    })\n  })\n  await t.doesNotReject(() =\u003e {\n    return new Promise((resolve, reject) =\u003e {\n      setTimeout(() =\u003e {\n        // This does, indeed, resolve.\n        resolve('Yay!')\n      })\n    })\n  })\n})\n```\n\nIf you save the above test in _tests/index.js_, you can run it with:\n\n```shell\nnpx tape tests/**/*.js\n```\n\nOr, in your _package.json_ file:\n\n```json\n{\n  \"scripts\": {\n    \"test\": \"tape tests/**/*.js\"\n  }\n}\n```\n\n## Test\n\n```shell\nnpm -s test\n```\n\n## Like this? Fund us!\n\n[Small Technology Foundation](https://small-tech.org) is a tiny, independent not-for-profit.\n\nWe exist in part thanks to patronage by people like you. If you share [our vision](https://small-tech.org/about/#small-technology) and want to support our work, please [become a patron or donate to us](https://small-tech.org/fund-us) today and help us continue to exist.\n\n## Related projects\n\n  - [tap-monkey](https://github.com/small-tech/tap-monkey): A [tap](https://testanything.org/) formatter that’s also a monkey. Displays test runner status using a static single-line spinner (hint: it’s a monkey) and only fills your screen with text on failures and with your coverage report.\n\n## Credits\n\n  - [tape](https://github.com/substack/tape) by [James Halliday](https://github.com/substack) et al.\n  - [tape-promise](https://github.com/jprichardson/tape-promise) by [JP Richardson](https://github.com/jprichardson)\n\n## Copyright\n\nCopyright ⓒ 2022-present, [Aral Balkan](https://ar.al), [Small Technology Foundation](https://small-tech.org).\n\n## License\n\nReleased under [GNU AGPL version 3.0 or later](https://www.gnu.org/licenses/agpl-3.0.en.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmall-tech%2Ftape-with-promises","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmall-tech%2Ftape-with-promises","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmall-tech%2Ftape-with-promises/lists"}