{"id":23666584,"url":"https://github.com/redsift/tape-reel","last_synced_at":"2025-12-11T06:30:11.248Z","repository":{"id":65603711,"uuid":"58556556","full_name":"redsift/tape-reel","owner":"redsift","description":null,"archived":false,"fork":false,"pushed_at":"2019-04-11T13:16:11.000Z","size":30,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-01-29T18:03:03.418Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redsift.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":"2016-05-11T15:22:06.000Z","updated_at":"2019-04-11T13:14:53.000Z","dependencies_parsed_at":"2023-01-31T10:45:14.843Z","dependency_job_id":null,"html_url":"https://github.com/redsift/tape-reel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsift%2Ftape-reel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsift%2Ftape-reel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsift%2Ftape-reel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsift%2Ftape-reel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redsift","download_url":"https://codeload.github.com/redsift/tape-reel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239674898,"owners_count":19678490,"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-29T07:33:11.782Z","updated_at":"2025-12-11T06:30:11.166Z","avatar_url":"https://github.com/redsift.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tape-reel\n\n[![Circle CI](https://img.shields.io/circleci/project/redsift/tape-reel.svg?style=flat-square)](https://circleci.com/gh/redsift/tape-reel)\n[![npm](https://img.shields.io/npm/v/@redsift/tape-reel.svg?style=flat-square)](https://www.npmjs.com/package/@redsift/tape-reel)\n[![MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/redsift/tape-reel/master/LICENSE)\n\nSimple [tape](https://github.com/substack/tape) wrapper to better integrate server side JSDOM testing and CircleCI.\n\n## Usage\n\nWhere you typically use Tape e.g.\n\n    var tape = require(\"tape\");\n\nSimply\n\n    var tape = require(\"@redsift/tape-reel\")(\"\u003cdiv id='test'\u003e\u003c/div\u003e\");\n\nThe HTML sets the JSDOM for environment for each test invocation. This document is provided in the global scope for easy integration with browser JavaScript components and passed as the second parameter to the function under test.\n\n## Features\n\nCompared to a naked Tape setup, this wrapper provides the following pre-configurations:\n\n1. Setup and teardown a fresh JSDOM for each test.\n1. When run on CircleCI, produce a JUnit.xml compatible output in `$CIRCLE_TEST_REPORTS/junit/junit.xml`.\n1. When not run on CircleCI, pretty print with tap-diff and dump the DOM for failing tests. You may manually get a string representation of the DOM using `tape.dumpJSDOM(document)`.\n\n## Options\n\n    var tape = require(\"@redsift/tape-reel\")(JSDOM-HTML, SUPRESS-DOM, REPORT-NAME);\n\nParameter|Purpose|Default\n---------|-------|-------\n`JSDOM-HTML`|May be null if no JSDOM environment is required|`null`\n`SUPRESS-DOM`|By default, a failing test will dump the state of the DOM|`false`\n`REPORT-NAME`|Names the test report when generating `junit.xml` files on CircleCI|`junit`\n\n## Known Issues\n\nCurrently, `REPORT-NAME` does not produce multiple junit.xml files due to a bug in the imported `tap-xunit` module.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredsift%2Ftape-reel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredsift%2Ftape-reel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredsift%2Ftape-reel/lists"}