{"id":17650531,"url":"https://github.com/taylorgoolsby/boxtape","last_synced_at":"2025-09-05T20:41:37.192Z","repository":{"id":178489477,"uuid":"661933455","full_name":"taylorgoolsby/boxtape","owner":"taylorgoolsby","description":"A tape testing framework with defaults","archived":false,"fork":false,"pushed_at":"2023-07-07T00:16:52.000Z","size":246,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-29T21:04:48.778Z","etag":null,"topics":["esm","tap","tape","testing"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/boxtape","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/taylorgoolsby.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-04T02:20:52.000Z","updated_at":"2023-07-04T04:45:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"49596dae-8535-45ac-8023-27af167f1e24","html_url":"https://github.com/taylorgoolsby/boxtape","commit_stats":null,"previous_names":["taylrun/boxtape"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/taylorgoolsby/boxtape","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taylorgoolsby%2Fboxtape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taylorgoolsby%2Fboxtape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taylorgoolsby%2Fboxtape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taylorgoolsby%2Fboxtape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taylorgoolsby","download_url":"https://codeload.github.com/taylorgoolsby/boxtape/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taylorgoolsby%2Fboxtape/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273817721,"owners_count":25173665,"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-09-05T02:00:09.113Z","response_time":402,"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":["esm","tap","tape","testing"],"created_at":"2024-10-23T11:38:43.180Z","updated_at":"2025-09-05T20:41:37.184Z","avatar_url":"https://github.com/taylorgoolsby.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📦 boxtape\n\nThis is just regular tape, but with some quality of life improvements for the ESM era.\n\n## Usage\n\nSee [tape](https://www.npmjs.com/package/tape).\n\n```shell\nnpm install boxtape\n\n# If you use typescript:\nnpm install @types/tape\n```\n\n```shell\nboxtape tests/**/*.js\n```\n\n```js\nimport test from 'boxtape'\n```\n\n## Additions\n\n### `beforeEach`\n\n```js\nimport test from 'boxtape'\n\ntest.beforeEach(async (t) =\u003e {\n  // Do something before each test.\n})\n```\n\n### `afterEach`\n\n```js\nimport test from 'boxtape'\n\ntest.afterEach(async (t) =\u003e {\n  // Do something after each test.\n})\n```\n\n### Default TAP Output Formatter\n\nThis uses a fork of [`tap-pretty`](https://www.npmjs.com/package/tap-pretty) to provide a nice output by default. The fork has added error stack trace so that you can navigate to where the error occurred.\n\n![error example](./images/error.png)\n\nSince `boxtape` automatically pipes `tape` output into `tap-pretty`, you cannot pipe into your own tap formatter. \n\n## Examples\n\n### Frontend Testing \n\nHere is a simple example to get you started for frontend testing.\n\n```js\n// In this example, we are doing some frontend testing.\nimport test from 'boxtape'\nimport sinon from 'sinon'\nimport {JSDOM} from 'jsdom'\n\n// Load DOM functions:\nconst dom = new JSDOM()\nglobal.document = dom.window.document\nglobal.window = dom.window\n\nsinon.spy(document)\n\ntest.beforeEach(() =\u003e {\n  // Maybe you want to reset your spy counts:\n  for (const method in document) {\n    if (typeof document[method] === 'function') {\n      if (document[method].callCount !== undefined) {\n        document[method].callCount = 0\n      }\n    }\n  }\n})\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaylorgoolsby%2Fboxtape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaylorgoolsby%2Fboxtape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaylorgoolsby%2Fboxtape/lists"}