New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tst

Package Overview
Dependencies
Maintainers
3
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tst

Tape-compatible test runner

  • 5.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
137
decreased by-48.69%
Maintainers
3
Weekly downloads
 
Created
Source

tst

  • tape-compatible
  • async functions
  • t.todo, t.fixme - broken/unfinished
  • t.node, t.browser, t.require, t.import - target env tests
  • t.demo - demo-run (can fail)
  • inspectable errors
  • correct stacktrace with sourcemaps
  • t.is assert
  • muted skipped
  • better colors

Install

npm install tst

or

import t from 'https://unpkg.com/tst?module'

Use

t('these tests will all pass', t => {
	t.ok(true);
	t.ok(true, 'this time with an optional message');
	t.ok('not true, but truthy enough');

	t.is(1 + 1, 2);
	t.is(Math.max(1, 2, 3), 3);
	t.is({}, {})

	t.throws(() => {
		throw new Error('oh no!');
	}, /oh no!/);

	t.pass('ok')
})

t('these tests will not pass', t => {
	t.is(42, '42');
	t.is({}, {});

	t.fail('nok')
})

t.skip('this test will not run', t => {
	t.pass('ok')
})

Neighbor art

  • tape-modern
  • @goto-bus-stop/tape-modern

HK

FAQs

Package last updated on 22 Dec 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc