# magic-tape **Repository Path**: mirrors_mapbox/magic-tape ## Basic Information - **Project Name**: magic-tape - **Description**: tape plus some goodies - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-01-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README magic-tape ---------- Wrapper around tape that adds a few additional goodies. Note that you will also want to include `tape` as one of your project's dependencies if you want to use the `tape` testrunner command. **Before** ```js var tape = require('tape'); tape('apples', function(assert) { assert.ok(true, 'apples are great!'); assert.end(); }); ``` **After** ```js var tape = require('magic-tape'); tape('apples', function(assert) { assert.ok(true, 'apples are great!'); assert.end(); }); ``` ### Goodies ```sh tape -g tape --grep ``` Register and run only the tests that match ``. ```js var tape = require('magic-tape'); tape.beforeEach('testName', {}, function(assert) { assert.end(); }); ``` Register and run a test once before all other tests. ```js var tape = require('magic-tape'); tape.afterEach('testName', {}, function(assert) { assert.end(); }); ``` Register and run a test once after all other tests.