{"id":22439,"library":"tape-rollup","title":"tape-rollup","description":"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.","status":"maintenance","version":"4.6.4","language":"javascript","source_language":"en","source_url":"https://github.com/firstandthird/tape-rollup","tags":["javascript","tape","rollup","es2015"],"install":[{"cmd":"npm install tape-rollup","lang":"bash","label":"npm"},{"cmd":"yarn add tape-rollup","lang":"bash","label":"yarn"},{"cmd":"pnpm add tape-rollup","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"core test framework dependency","package":"tape","optional":false}],"imports":[{"note":"ESM-only, no CJS support.","wrong":"const test = require('tape-rollup')","symbol":"test","correct":"import test from 'tape-rollup'"},{"note":"Default export, not named. Wrong import style will cause undefined.","wrong":"import { test } from 'tape-rollup'","symbol":"test","correct":"import test from 'tape-rollup'"},{"note":"Named export, but ESM only.","wrong":"const skip = require('tape-rollup').skip","symbol":"skip","correct":"import { skip } from 'tape-rollup'"},{"note":"Named export, not default.","wrong":"import only from 'tape-rollup'","symbol":"only","correct":"import { only } from 'tape-rollup'"}],"quickstart":{"code":"import test from 'tape-rollup';\n\ntest('addition', (t) => {\n  t.plan(1);\n  t.equal(1 + 1, 2);\n});\n","lang":"javascript","description":"Basic usage: import default function 'test' and write a simple test assertion."},"warnings":[{"fix":"Use 'import test from \"tape-rollup\"' with an ESM-compatible environment or bundler.","message":"The package is ESM-only; does not export a CommonJS module. Using require() will fail.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Consider using the 'tape' package directly with proper Rollup configuration for Node built-in modules.","message":"The library has not been updated since 2018. It may not work with newer versions of Rollup (>=2.0) or Tape (>5).","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Use named import syntax: import { skip } from 'tape-rollup'","message":"Do not import named exports like 'skip' or 'only' with a default import pattern.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'npm install tape-rollup' and ensure the import matches the package name.","cause":"Package not installed or incorrect import path.","error":"Error: Cannot find module 'tape-rollup'"},{"fix":"Change to 'import test from \"tape-rollup\"' (default import).","cause":"Using named import { test } instead of default import.","error":"SyntaxError: The requested module 'tape-rollup' does not provide an export named 'test'"},{"fix":"Use ES module import syntax: 'import test from \"tape-rollup\"'","cause":"Using require('tape-rollup') which returns an object with a default property.","error":"TypeError: test is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}