New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

utap

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utap

Micro TAP formatter

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

μtap

A micro TAP formatter that works very well with the Node >=18 built-in node:test harness.

  • The output format is inspired by AVA.
  • Less than 100 lines of code, and a single chalk dependency.

Example output

Give it a try

node my.test.js | npx utap

Use it in your project

npm install --save-dev utap

Put your tests in tests/ directory (or wherever you like really)

In your package.json:

  "scripts": {
    "test": "find tests -type f -name '*.test.js' -exec echo \\# utap-src:{} \\; -exec node {} \\; | utap"
  },

Adding the # utap-src:{filename} comment in between individual test files' TAP output allows utap to report the filename together with test descriptions. Remove that part if you don't need it.

npm test

Note

I am not using the built-in node --test runner on purpose to allow for more flexibility.

Keywords

TAP

FAQs

Package last updated on 06 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts