Registry / testing / tape-rollup

tape-rollup

JSON →
library4.6.4jsnpmunverified

A standalone version of the Tape test runner bundled specifically for use with Rollup. Version 4.6.4 is the current stable release. The package is a thin wrapper that re-exports Tape's core functionality (test, skip, only, etc.) in a way that is compatible with Rollup's ES module resolution. Key differentiator: eliminates the need for Node.js built-in module polyfills when using Tape with Rollup. Release cadence is sporadic, with the last update in 2018. Only suitable for projects using Rollup as their build system.

npm install tape-rollup
INSTALL
IMPORT
SIG · TAPE-ROLLUP
T
tape-rollup
testingjavascriptv4.6.4
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

test
import test from 'tape-rollup'
const test = require('tape-rollup')
ESM-only, no CJS support.
test
import test from 'tape-rollup'
import { test } from 'tape-rollup'
Default export, not named. Wrong import style will cause undefined.
skip
import { skip } from 'tape-rollup'
const skip = require('tape-rollup').skip
Named export, but ESM only.
only
import { only } from 'tape-rollup'
import only from 'tape-rollup'
Named export, not default.

Basic usage: import default function 'test' and write a simple test assertion.

import test from 'tape-rollup'; test('addition', (t) => { t.plan(1); t.equal(1 + 1, 2); });
Debug
Known issues
breakingThe package is ESM-only; does not export a CommonJS module. Using require() will fail.
fix
Use 'import test from "tape-rollup"' with an ESM-compatible environment or bundler.
affects: >=1.0.0
deprecatedThe library has not been updated since 2018. It may not work with newer versions of Rollup (>=2.0) or Tape (>5).
fix
Consider using the 'tape' package directly with proper Rollup configuration for Node built-in modules.
affects: >=1.0.0
gotchaDo not import named exports like 'skip' or 'only' with a default import pattern.
fix
Use named import syntax: import { skip } from 'tape-rollup'
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'tape-rollup'
Package not installed or incorrect import path.
fix
Run 'npm install tape-rollup' and ensure the import matches the package name.
SyntaxError: The requested module 'tape-rollup' does not provide an export named 'test'
Using named import { test } instead of default import.
fix
Change to 'import test from "tape-rollup"' (default import).
TypeError: test is not a function
Using require('tape-rollup') which returns an object with a default property.
fix
Use ES module import syntax: 'import test from "tape-rollup"'
Upgrade
Version history
4.6.4latest on npm
Audit
Dependencies
taperequiredcore test framework dependency
Agent activity
4 hits · last 30 days
node
4
Resources
tape-rollup — npm install tape-rollup · libregistry