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

tst

Package Overview
Dependencies
Maintainers
2
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tst

Minimalistic test runner for node/browser

  • 1.2.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

TST

Minimalistic test runner for browser and node with mocha/tap-compatible API.

npm install tst

// ./test.js

var test = require('tst');
var assert = require('assert');


test('Test trivial things', function() {
    var success = true;
    assert.equal(success, true);
});

test.skip('Do not test unwanted things', function () {
	var $ = require('jquery');
});

test('Group tests', function () {
	test('A', function () {

	});
	test('B', function () {

	});
});

test.only('Test of interest', function () {
	//this test is run exclusively
});

test('Async stuff', function (done) {
	this.timeout(3000);
	setTimeout(done, 2100);
});

Run in node: $ node ./test.js

Terminal

or in browser: $ beefy ./test.js.

Browser

If you’ve changed your mind, just return to mocha: var test = it;.

ava — futuristic test runner by @sindresorhus.
mocha — vintage test runner by @tj.
tape — Test Anything Protocol by @substack.
tap — Test Anything Protocol by @isaacs
tst — initial version of tst by @grahamlyons

Keywords

FAQs

Package last updated on 16 Feb 2016

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