# enhanced-tape-runner

> Small collection of simple utilities for running tape tests

Latest version **1.1.4** (published 2020-08-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install enhanced-tape-runner
pnpm add enhanced-tape-runner
yarn add enhanced-tape-runner
bun add enhanced-tape-runner
```

Provides the command `enhanced-tape-runner`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2020-08-03 |
| First published | 2018-09-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alexey D |
| Maintainers | alexeyds |
| Keywords | tape, babel, babel7, es6 |

## Links

- npm: https://www.npmjs.com/package/enhanced-tape-runner
- Repository: https://github.com/alexeyds/enhanced-tape-runner
- Issues: https://github.com/alexeyds/enhanced-tape-runner/issues
- npm.io page: https://npm.io/package/enhanced-tape-runner

## Dependencies (4)

- [glob](https://npm.io/package/glob.md) ^7.1.6
- [yargs](https://npm.io/package/yargs.md) ^15.4.1
- [@babel/polyfill](https://npm.io/package/@babel/polyfill.md) ^7.10.4
- [@babel/register](https://npm.io/package/@babel/register.md) ^7.10.5

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.1.4 (latest) — 2020-08-03
- 1.1.2 — 2018-11-01
- 1.1.1 — 2018-11-01
- 1.1.0 — 2018-11-01
- 1.0.0-rc.2 — 2018-10-06
- 1.0.0-rc.1 — 2018-09-08

## README

## Babel version
Only Babel 7 is supported. Check out ![babel-tape-runner](https://github.com/wavded/babel-tape-runner) for Babel 5 and 6 test runner

## Installation
```
npm i enhanced-tape-runner --save-dev
```

## Usage
Simply run the binary with one or multiple paths to your test directories/files:
```
node_modules/.bin/enhanced-tape-runner test test/things/index_test.js
```
This command does 3 things:
1. Enables Babel by requiring `@babel/polyfill` and `@babel/register`
2. Adds an `unhandledRejection` event listener to `process` which throws informative error on any unhandled promise rejection
3. Requires all files in `test` directory matching `test/**/_test.*` glob pattern and also requires `test/things/index_test.js`

You can supply a `--no-handle-rejections` option to this command to disable unhandledRejection event listener.

Example usage in shell script file:

```
#!/bin/bash

NODE_ENV=test node_modules/.bin/enhanced-tape-runner "$@" | node_modules/.bin/tap-spec
```

## License
MIT

---
_Source: https://npm.io/package/enhanced-tape-runner · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
