All Projects → vanillaes → tape-es

vanillaes / tape-es

Licence: MIT license
ESM-compatible Tape.js test runner

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to tape-es

npm-es-modules
Breakdown of 7 different ways to use ES modules with npm today.
Stars: ✭ 67 (+179.17%)
Mutual labels:  esmodules, esm
unpack
Create Web apps without a bundler
Stars: ✭ 39 (+62.5%)
Mutual labels:  esmodules, esm
Jsdelivr
A free, fast, and reliable Open Source CDN for npm, GitHub, Javascript, and ESM
Stars: ✭ 4,052 (+16783.33%)
Mutual labels:  esmodules, esm
oletus
Minimal ECMAScript Module test runner
Stars: ✭ 43 (+79.17%)
Mutual labels:  esmodules, esm
absurdum
The Ridiculous Application of Reduce
Stars: ✭ 61 (+154.17%)
Mutual labels:  esmodules, esm
Esm
Tomorrow's ECMAScript modules today!
Stars: ✭ 5,093 (+21120.83%)
Mutual labels:  esmodules, esm
nanobundle
Yet another build tool for libraries, powered by esbuild
Stars: ✭ 45 (+87.5%)
Mutual labels:  esmodules, esm
urlpack
Pure JavaScript toolkit for data URLs (MessagePack, Base58 and Base62)
Stars: ✭ 51 (+112.5%)
Mutual labels:  esmodules
loaders
ECMAScript Modules Loaders
Stars: ✭ 65 (+170.83%)
Mutual labels:  esm
productive-cycles-webext
Simple-yet-complete Pomodoro timer for Firefox and Google Chrome. Built with the WebExtensions API and React.
Stars: ✭ 17 (-29.17%)
Mutual labels:  esmodules
ltopers
Bash scripts to manage LTO cartridges with LTFS
Stars: ✭ 26 (+8.33%)
Mutual labels:  tape
stenc
SCSI Tape Encryption Manager - stenc (formerly on https://sourceforge.net/projects/stenc/)
Stars: ✭ 41 (+70.83%)
Mutual labels:  tape
originator
🌱 es6 starter - babel, tape, zuul, npm scripts
Stars: ✭ 12 (-50%)
Mutual labels:  tape
zxtap-to-wav
Converter of .TAP files (a ZX-Spectrum emulator data format) into .WAV sound files
Stars: ✭ 34 (+41.67%)
Mutual labels:  tape
nsplayer
A web player with shakaplayer & hls.js both supported
Stars: ✭ 23 (-4.17%)
Mutual labels:  esm
vitext
The Next.js like React framework for better User & Developer experience!
Stars: ✭ 376 (+1466.67%)
Mutual labels:  esm
ltfs
Reference implementation of the LTFS format Spec for stand alone tape drive
Stars: ✭ 130 (+441.67%)
Mutual labels:  tape
node-bogota
🚀 Run tape tests concurrently with tap-spec output
Stars: ✭ 15 (-37.5%)
Mutual labels:  tape
tailwind-layouts
Collection of Tailwind Layouts
Stars: ✭ 53 (+120.83%)
Mutual labels:  esm
coverage-node
A simple CLI to run Node.js and report code coverage.
Stars: ✭ 39 (+62.5%)
Mutual labels:  esm

Tape-ES

A Tape.js test runner and watcher for modern JavaScript. Works with both ES modules and CommonJS.

GitHub Release NPM Release Latest Status Release Status

Discord

Features

  • runs ES module tests
  • runs tests in parallel for speed
  • uses sensible defaults
  • works with type: module packages

Note: Since this is an ES package, it requires Node >= v14.x

tape-es

Arguments

tape-es [pattern] -i [pattern] -r [path] -t [number]

  • [pattern] - the file matcher pattern (default **/*.spec.js)
  • -i | --ignore - the ignore matcher pattern (default **/node_modules/**)
  • -r | --root - the root path to run the tests from (default process.cwd())
  • -t | --threads - Number of threads to run concurrently (default 10)

Basic Usage

Use the defaults

tape-es

Advanced Usage

Specify custom parameters

tape-es "**/*.spec.js" -i "node_modules/**" -r ../absurdum/ -t 20

Note: In Linux/OSX the matcher patterns must be delimited in quotes.

tape-watch-es

Arguments

tape-es [pattern] -i [pattern] -r [path]

  • [pattern] - the file matcher pattern (default **/*.spec.js)
  • -i | --ignore - the ignore matcher pattern (default **/node_modules/**)
  • -r | --root - the root path to run the tests from (default process.cwd())

Basic Usage

Use the defaults

tape-watch-es

Advanced Usage

Specify custom parameters

tape-es "**/*.spec.js" -i "node_modules/**" -r ../absurdum/

Note: In Linux/OSX the matcher patterns must be delimited in quotes.

Writing Tests

Tests are identical to Tape.js, except import is used to load modules rather than require.

import test from 'tape';
import { arrays } from '../../index.js';

test('arrays.chunk(array) - should return a chunk for each item in the array', t => {
  // ...test code
});

Tap Reporters

One of the greatest advantages to using Tape, is that it outputs results in the standard TAP format. That means you can pipe the results into a wide array of TAP reporters.

The parallel nature of this runner will break most reporters. As a General rule.

  1. if you want speed (ie CI/CD) don't use a reporter
  2. if you want speed and readability use tap-spec
  3. if you want to use any reporter, run tests in parallel with tape-es -t 1
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].